diff --git a/web/utils/converter.ts b/web/utils/converter.ts index 630366ed0..ed8a61d65 100644 --- a/web/utils/converter.ts +++ b/web/utils/converter.ts @@ -1,4 +1,5 @@ export const toGigabytes = (input: number) => { + if (!input) return '' if (input > 1024 ** 3) { return (input / 1000 ** 3).toFixed(2) + 'GB' } else if (input > 1024 ** 2) {