From 6fe901b83c98a0f81a0ed47afeb2d2b0afd6f2fb Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 5 Dec 2023 17:44:51 +0700 Subject: [PATCH] fix: Hub fix for undefined model size --- web/utils/converter.ts | 1 + 1 file changed, 1 insertion(+) 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) {