fix: format many voters as human readable number
This commit is contained in:
parent
2fed89be9d
commit
be68912226
2 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@ import type { MaybeComputedRef, UseTimeAgoOptions } from '@vueuse/core'
|
|||
|
||||
const formatter = Intl.NumberFormat()
|
||||
|
||||
export const humanReadableNumber = (
|
||||
const humanReadableNumber = (
|
||||
num: number,
|
||||
{ k, m }: { k: string; m: string } = { k: 'K', m: 'M' },
|
||||
useFormatter: Intl.NumberFormat = formatter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue