mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Fixed short audio length display
This commit is contained in:
@@ -128,7 +128,7 @@ export class ChartSidebarComponent implements OnInit {
|
||||
*/
|
||||
updateSongLength() {
|
||||
let seconds = this.selectedVersion.chartMetadata.length
|
||||
if (seconds < 60) { this.songLength = `${seconds} second${seconds == 1 ? '' : 's'}` }
|
||||
if (seconds < 60) { this.songLength = `${seconds} second${seconds == 1 ? '' : 's'}`; return }
|
||||
let minutes = Math.floor(seconds / 60)
|
||||
let hours = 0
|
||||
while (minutes > 59) {
|
||||
|
||||
Reference in New Issue
Block a user