From f4d42d437e8875416057b0e7723cc95bd7f67030 Mon Sep 17 00:00:00 2001 From: myung03 Date: Tue, 14 May 2024 17:19:49 -0700 Subject: [PATCH] fixed typecheck error uwu --- interface/app/$libraryId/overview/StatCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/app/$libraryId/overview/StatCard.tsx b/interface/app/$libraryId/overview/StatCard.tsx index 2554ec755..35750442d 100644 --- a/interface/app/$libraryId/overview/StatCard.tsx +++ b/interface/app/$libraryId/overview/StatCard.tsx @@ -44,7 +44,7 @@ const StatCard = ({ icon, name, devices, connectionType, ...stats }: StatCardPro usedSpace.unit = humanizeSize(Number(stats.totalSpace) - Number(stats.freeSpace)).unit; const progress = useMemo(() => { - if (!mounted || totalSpace.original === 0) return 0; + if (!mounted || totalSpace.bytes === 0n) return 0; return Math.floor((usedSpace.value / totalSpace.value) * 100); }, [mounted, totalSpace, usedSpace]); const { t } = useLocale();