We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a423c commit b491df9Copy full SHA for b491df9
src/utils/format.ts
@@ -1,9 +1,4 @@
1
export function formatBytes(bytes: number): string | undefined {
2
if (bytes === Infinity) return undefined
3
- const numberFormatter = new Intl.NumberFormat('en', {
4
- maximumFractionDigits: 2,
5
- minimumFractionDigits: 2,
6
- })
7
-
8
- return `${numberFormatter.format(bytes / 1000)} kB`
+ return `${(bytes / 1000).toFixed(2)} kB`
9
}
0 commit comments