Fix issue with time widget
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d6e0eccb00
commit
9fcd16784a
@ -21,7 +21,7 @@ export function timeDiff(a: number, b: number): string {
|
|||||||
diff = Math.floor(diff / 60);
|
diff = Math.floor(diff / 60);
|
||||||
|
|
||||||
if (diff === 1) return "1 minute";
|
if (diff === 1) return "1 minute";
|
||||||
if (diff < 24) {
|
if (diff < 60) {
|
||||||
return `${diff} minutes`;
|
return `${diff} minutes`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user