Skip to content

Commit

Permalink
revert defaulting to false
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford committed Apr 25, 2024
1 parent 0c221cf commit 58d9292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensionConsole/pages/UpdateBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { getExtensionVersion } from "@/utils/extensionUtils";

// XXX: move this kind of async state to the Redux state.
export function useUpdateAvailable(): boolean {
const { data: updateAvailable = false } = useAsyncState(async () => {
const { data: updateAvailable } = useAsyncState(async () => {
try {
const available = await getAvailableVersion();
const installed = getExtensionVersion();
Expand All @@ -37,7 +37,7 @@ export function useUpdateAvailable(): boolean {
}
}, []);

return updateAvailable;
return Boolean(updateAvailable);
}

const UpdateBanner: React.FunctionComponent = () => {
Expand Down

0 comments on commit 58d9292

Please sign in to comment.