feat: zaps #78

Merged
verbiricha merged 18 commits from zaps into main 2023-02-04 13:53:59 +00:00
Showing only changes of commit a134086807 - Show all commits

View File

@ -7,8 +7,8 @@ export function formatShort(n: number) {
if (n < 999) {
return n
} else if (n < 1e8) {
return `${intl.format(Math.floor(n / 1e3))}K`
return `${intl.format(n / 1e3)}K`
} else {
return `${intl.format(Math.floor(n / 1e6))}M`
return `${intl.format(n / 1e6)}M`
}
}