Skip to content

Commit

Permalink
fix(app): stop popping up the update modal after dismissing the modal (
Browse files Browse the repository at this point in the history
…#11328)

Change the General Tab's condition for the update modal. 
This will close RAUT-134.
  • Loading branch information
koji authored Sep 6, 2022
1 parent 2041697 commit 2f7b672
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/pages/AppSettings/GeneralSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ export function GeneralSettings(): JSX.Element {
const ignored = getAlertIsPermanentlyIgnored(s, ALERT_APP_UPDATE_AVAILABLE)
return ignored !== null ? !ignored : null
})
const [showUpdateModal, setShowUpdateModal] = React.useState<boolean>(
updateAlertEnabled ? updateAvailable : false
)
const [showUpdateModal, setShowUpdateModal] = React.useState<boolean>(false)
const handleToggle = (): void => {
if (updateAlertEnabled !== null) {
dispatch(
Expand Down

0 comments on commit 2f7b672

Please sign in to comment.