Never show negative formatted time

This commit is contained in:
Ajay Ramachandran
2021-08-13 23:19:08 -04:00
parent c8611adf50
commit f01a1ae4ec

View File

@@ -429,6 +429,8 @@ export default class Utils {
}
getFormattedTime(seconds: number, precise?: boolean): string {
seconds = Math.max(seconds, 0);
const hours = Math.floor(seconds / 60 / 60);
const minutes = Math.floor(seconds / 60) % 60;
let minutesDisplay = String(minutes);