Fix issue with time widget
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-11-19 19:05:46 +01:00
parent d6e0eccb00
commit 9fcd16784a

View File

@ -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`;
}