Skip to content

Commit

Permalink
Fix the check for empty update
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Oct 27, 2023
1 parent 9adb5ee commit 6aacb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/Settings/SettingsUpdates/SettingsUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function SettingsUpdates() {
/>
</Horizontal>
<APIError error={error} />
{update === undefined && !isLoadingUpdate && (
{update === null && !isLoadingUpdate && (
<Caption className={styles.content}>
<Horizontal alignItems="center" gap={6}>
<MaterialIcon icon="check" />
Expand All @@ -80,7 +80,7 @@ export default function SettingsUpdates() {
</Horizontal>
</Caption>
)}
{update !== undefined && (
{update !== null && (
<List>
<VertexUpdate
version={update?.baseline.version}
Expand Down

0 comments on commit 6aacb77

Please sign in to comment.