diff --git a/web/src/lib/util.ts b/web/src/lib/util.ts index c590f22e..772f35e2 100644 --- a/web/src/lib/util.ts +++ b/web/src/lib/util.ts @@ -8,7 +8,7 @@ export const formatFileSize = (size: number | undefined) => { units.pop(); } - const roundedSize = parseFloat(size.toFixed(2)); + const roundedSize = size.toFixed(2); const unit = units[units.length - 1] + "B"; return `${roundedSize} ${unit}`; }