Skip to content

Commit

Permalink
fix: enable desktop update notifications on all platforms (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau authored Jul 6, 2022
1 parent 498294e commit 33fff93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layout/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ const Dashboard = (props: Props): ReactElement => {
const classes = useStyles()

const { isLoading } = useContext(Context)
const { isBeeDesktop, desktopAutoUpdateEnabled } = useIsBeeDesktop()
const { isBeeDesktop } = useIsBeeDesktop()
const { newBeeDesktopVersion } = useNewBeeDesktopVersion(isBeeDesktop)
const { enqueueSnackbar, closeSnackbar } = useSnackbar()

useEffect(() => {
if (!desktopAutoUpdateEnabled && newBeeDesktopVersion !== '') {
if (newBeeDesktopVersion !== '') {
enqueueSnackbar(`There is new Swarm Dashboard version ${newBeeDesktopVersion}!`, {
variant: 'warning',
preventDuplicate: true,
Expand All @@ -61,7 +61,7 @@ const Dashboard = (props: Props): ReactElement => {
),
})
}
}, [enqueueSnackbar, closeSnackbar, newBeeDesktopVersion, desktopAutoUpdateEnabled])
}, [enqueueSnackbar, closeSnackbar, newBeeDesktopVersion])

const content = (
<>
Expand Down

0 comments on commit 33fff93

Please sign in to comment.