Fixed short audio length display

This commit is contained in:
Geomitron
2020-07-11 21:08:52 -04:00
parent c84e84e23a
commit f88f4ff859

View File

@@ -128,7 +128,7 @@ export class ChartSidebarComponent implements OnInit {
*/ */
updateSongLength() { updateSongLength() {
let seconds = this.selectedVersion.chartMetadata.length 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 minutes = Math.floor(seconds / 60)
let hours = 0 let hours = 0
while (minutes > 59) { while (minutes > 59) {