From 9fcd16784a7ba2846fdb3844989823174b1b9270 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 19 Nov 2024 19:05:46 +0100 Subject: [PATCH] Fix issue with time widget --- central_frontend/src/widgets/TimeWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/central_frontend/src/widgets/TimeWidget.tsx b/central_frontend/src/widgets/TimeWidget.tsx index f590a48..4446f3a 100644 --- a/central_frontend/src/widgets/TimeWidget.tsx +++ b/central_frontend/src/widgets/TimeWidget.tsx @@ -21,7 +21,7 @@ export function timeDiff(a: number, b: number): string { diff = Math.floor(diff / 60); if (diff === 1) return "1 minute"; - if (diff < 24) { + if (diff < 60) { return `${diff} minutes`; }