chore: improve zapper validation

This commit is contained in:
2023-03-05 16:58:34 +00:00
parent d959a492b1
commit c702d1b760
8 changed files with 89 additions and 79 deletions

View File

@ -8,7 +8,9 @@ export function formatShort(n: number) {
return n;
} else if (n < 1e6) {
return `${intl.format(n / 1e3)}K`;
} else {
} else if (n < 1e9) {
return `${intl.format(n / 1e6)}M`;
} else {
return `${intl.format(n / 1e9)}G`;
}
}