Bluesky app fork with some witchin' additions 💫

fix: don't round up count, truncate (#4261)

authored by

Mary and committed by
GitHub
4d39ef2e 65ad16e3

+4
+4
src/view/com/util/numeric/format.ts
··· 2 2 Intl.NumberFormat('en-US', { 3 3 notation: 'compact', 4 4 maximumFractionDigits: 1, 5 + // `1,953` shouldn't be rounded up to 2k, it should be truncated. 6 + // @ts-expect-error: `roundingMode` doesn't seem to be in the typings yet 7 + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode 8 + roundingMode: 'trunc', 5 9 }).format(num) 6 10 7 11 export function formatCountShortOnly(num: number): string {