From 22a2ebac74075e3d82db8471ce1ac9504e3134e1 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Tue, 24 Jan 2023 01:07:30 +0100 Subject: [PATCH] fix(player): use paddedMins for videos less than an hour --- src/components/video/controls/SkipTime.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/video/controls/SkipTime.tsx b/src/components/video/controls/SkipTime.tsx index 59c2923f..928b3e5c 100644 --- a/src/components/video/controls/SkipTime.tsx +++ b/src/components/video/controls/SkipTime.tsx @@ -22,7 +22,7 @@ function formatSeconds(secs: number, showHours = false): string { const paddedSecs = seconds.toString().padStart(2, "0"); const paddedMins = minutes.toString().padStart(2, "0"); - if (!showHours) return [minutes, paddedSecs].join(":"); + if (!showHours) return [paddedMins, paddedSecs].join(":"); return [hours, paddedMins, paddedSecs].join(":"); }