From cbe3a92bf64f69666a02f97595dfd948fb4b91fc Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 25 Jan 2024 23:11:53 -0600 Subject: [PATCH] im dumb --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9165c07..05173e1 100644 --- a/index.js +++ b/index.js @@ -48,10 +48,12 @@ function timeFormatter(seconds) { seconds = Math.ceil(seconds) var minutes = Math.floor(seconds / 60) - if (seconds < 10) { + if (seconds % 60 < 10) { return `${minutes}:0${seconds % 60}` + } else { + return `${minutes}:${seconds % 60}` } - return `${minutes}:${seconds % 60}` + } function gameTimeFormatter(seconds) {