Updater: Fix error when update check fails

fixes #114
This commit is contained in:
Ven 2022-10-18 09:57:32 +02:00 committed by GitHub
parent beb9aae26b
commit 287173458f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 (
<>