Skip to content

Commit c72b3b0

Browse files
committed
fix incorrect behavior when notifications are dismissed
1 parent 9da9528 commit c72b3b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/dash-renderer/src/components/error/menu/VersionInfo.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function shouldShowUpgradeNotification(currentDashVersion, newDashVersion) {
5656
const lastDismissedVersion = localStorage.getItem('lastDismissedVersion');
5757
if (
5858
currentDashVersion == newDashVersion ||
59-
!showNotifications ||
59+
showNotifications === 'false' ||
6060
newDashVersion === undefined
6161
) {
6262
return false;
@@ -85,8 +85,8 @@ export const VersionInfo = ({config}) => {
8585

8686
const setDontShowAgain = () => {
8787
// Set local storage to record the last dismissed notification
88+
localStorage.setItem('showNotifications', false);
8889
setUpgradeTooltipOpened(false);
89-
localStorage.setItem('showNotifications', true);
9090
};
9191

9292
const setRemindMeLater = () => {

0 commit comments

Comments
 (0)