best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/util/formatFileSize: don't parseFloat, allow .00 to stick around
wukkod98cb4c2d7c5
diff --git a/web/src/lib/util.ts b/web/src/lib/util.tsindex 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}`;}