Fix small typo in actions/app.js

This commit is contained in:
Franco Montenegro 2022-03-04 12:32:06 -03:00 committed by jessopb
parent 1f8c9fd24d
commit d410664d9a

View file

@ -206,7 +206,7 @@ export function doNotifyUpdateAvailable(e) {
const state = getState(); const state = getState();
const noModalBeingDisplayed = !selectModal(state); const noModalBeingDisplayed = !selectModal(state);
const isUpgradeSkipped = selectIsUpgradeSkipped(state); const isUpgradeSkipped = selectIsUpgradeSkipped(state);
const isRemoveVersionDiff = remoteVersion !== selectRemoteVersion(state); const isRemoteVersionDiff = remoteVersion !== selectRemoteVersion(state);
dispatch({ dispatch({
type: ACTIONS.CHECK_UPGRADE_SUCCESS, type: ACTIONS.CHECK_UPGRADE_SUCCESS,
@ -223,7 +223,7 @@ export function doNotifyUpdateAvailable(e) {
return; return;
} }
if (noModalBeingDisplayed && !isUpgradeSkipped && isRemoveVersionDiff) { if (noModalBeingDisplayed && !isUpgradeSkipped && isRemoteVersionDiff) {
dispatch(doOpenModal(MODALS.UPGRADE)); dispatch(doOpenModal(MODALS.UPGRADE));
} }
}; };