diff --git a/src/components/AppHighlightAlert/BackupAppHighlightAlert.jsx b/src/components/AppHighlightAlert/BackupAppHighlightAlert.jsx index cee6cb4513..e30c22d7e5 100644 --- a/src/components/AppHighlightAlert/BackupAppHighlightAlert.jsx +++ b/src/components/AppHighlightAlert/BackupAppHighlightAlert.jsx @@ -21,7 +21,7 @@ const isAvailable = () => { const isDisplayable = () => { const appStartCount = - parseInt(localStorage.getItem(APP_START_COUNT_KEY), 10) ?? 0 + parseInt(localStorage.getItem(APP_START_COUNT_KEY), 10) || 0 return appStartCount >= MAX_COUNT_VALUE - 1 } diff --git a/src/components/AppHighlightAlert/GeolocationTrackingAppHighlightAlert.jsx b/src/components/AppHighlightAlert/GeolocationTrackingAppHighlightAlert.jsx index 8c9c5b54c4..0e90815276 100644 --- a/src/components/AppHighlightAlert/GeolocationTrackingAppHighlightAlert.jsx +++ b/src/components/AppHighlightAlert/GeolocationTrackingAppHighlightAlert.jsx @@ -26,7 +26,7 @@ const isAvailable = () => { const isDisplayable = () => { const appStartCount = - parseInt(localStorage.getItem(APP_START_COUNT_KEY), 10) ?? 0 + parseInt(localStorage.getItem(APP_START_COUNT_KEY), 10) || 0 return appStartCount >= flag('home.push.coachco2.opencount') - 1 }