From 287173458fbaac295777a3f3ac9479b993bad91a Mon Sep 17 00:00:00 2001 From: Ven Date: Tue, 18 Oct 2022 09:57:32 +0200 Subject: Updater: Fix error when update check fails fixes #114 --- src/components/Updater.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 153d5e5..1e4036e 100644 --- a/src/components/Updater.tsx +++ b/src/components/Updater.tsx @@ -72,7 +72,7 @@ function Updatable(props: CommonProps) { const [isChecking, setIsChecking] = React.useState(false); const [isUpdating, setIsUpdating] = React.useState(false); - const isOutdated = updates.length > 0; + const isOutdated = (updates?.length ?? 0) > 0; return ( <> -- cgit