Improve and enable animated number display

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-05 14:46:22 +02:00
parent 5a8a13a136
commit 3e8989c0b0
4 changed files with 48 additions and 18 deletions

View File

@ -10,7 +10,7 @@ export const realNumberSchema = z.coerce.number().refine(n => !isNaN(n));
export const secondsToDays = (seconds: number) => Math.floor(seconds / (3600 * 24));
const roundDown = (num: number) => {
export const roundDown = (num: number) => {
if (num >= 100 && num < 1000) {
num = Math.floor(num);
}