diff options
author | Ven <vendicated@riseup.net> | 2022-10-18 09:57:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 09:57:32 +0200 |
commit | 287173458fbaac295777a3f3ac9479b993bad91a (patch) | |
tree | f958ff9ed6c9ca7f950c616d450d88d2328d0798 /src/components | |
parent | beb9aae26ba790cba5cc239b8aa5382dc7e9ead7 (diff) | |
download | Vencord-287173458fbaac295777a3f3ac9479b993bad91a.tar.gz Vencord-287173458fbaac295777a3f3ac9479b993bad91a.tar.bz2 Vencord-287173458fbaac295777a3f3ac9479b993bad91a.zip |
Updater: Fix error when update check fails
fixes #114
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Updater.tsx | 2 |
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 ( <> |