From 74df05e323e89dfedba9739678de76b1844cbcef Mon Sep 17 00:00:00 2001 From: Klemek Date: Mon, 28 Oct 2024 23:44:50 +0100 Subject: [PATCH] Update main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 16de2a2..f62cc37 100644 --- a/main.js +++ b/main.js @@ -126,8 +126,8 @@ let app = { }, 1000); }, 150); }, - timeText(minutes) { - if (minutes >= 60) { + timeText(minutes, hour = false) { + if (hour || minutes >= 60) { return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart( 2, "0"