aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-18 09:57:32 +0200
committerGitHub <noreply@github.com>2022-10-18 09:57:32 +0200
commit287173458fbaac295777a3f3ac9479b993bad91a (patch)
treef958ff9ed6c9ca7f950c616d450d88d2328d0798
parentbeb9aae26ba790cba5cc239b8aa5382dc7e9ead7 (diff)
downloadVencord-287173458fbaac295777a3f3ac9479b993bad91a.tar.gz
Vencord-287173458fbaac295777a3f3ac9479b993bad91a.tar.bz2
Vencord-287173458fbaac295777a3f3ac9479b993bad91a.zip
Updater: Fix error when update check fails
fixes #114
-rw-r--r--src/components/Updater.tsx2
1 files changed, 1 insertions, 1 deletions
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 (
<>