show small numbers
This commit is contained in:
parent
b31b10f686
commit
02bd53da9f
@ -4,7 +4,7 @@ const intl = new Intl.NumberFormat("en", {
|
||||
});
|
||||
|
||||
export function formatShort(n: number) {
|
||||
if (n < 999) {
|
||||
if (n < 1e5) {
|
||||
return n
|
||||
} else if (n < 1e8) {
|
||||
return `${intl.format(n / 1e3)}K`
|
||||
|
Loading…
x
Reference in New Issue
Block a user