From ad1ccc4fd3cf6f53c6fc36eb0a57ab04524b37da Mon Sep 17 00:00:00 2001 From: Miguel Sozinho Ramalho <19508417+msramalho@users.noreply.github.com> Date: Fri, 6 Jan 2023 22:14:28 +0000 Subject: [PATCH] editors note (delayed commit) (#63) --- config.js | 3 ++- src/components/Layout.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 85676d4..a35485a 100755 --- a/config.js +++ b/config.js @@ -60,7 +60,8 @@ module.exports = { }, intro: [ '


Editor\'s note: An error in our archiving system between October 21 and November 7 led to some incidents being published on our TimeMap before they were fully verified. We have fixed this issue and are working to verify all extra incidents.
', ], flags: { isInfopoup: false, isCover: false }, diff --git a/src/components/Layout.js b/src/components/Layout.js index 97bfe47..44db77b 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -248,10 +248,11 @@ class Dashboard extends React.Component { renderIntroPopup(styles) { const { app, actions } = this.props; + const localStorageKey = "rememberDismissedIntro2"; // can be incremented when new data appears on the cover let searchParams = new URLSearchParams(window.location.href.split("?")[1]); let rememberDismissedIntro = - localStorage.getItem("rememberDismissedIntro") === "true"; + localStorage.getItem(localStorageKey) === "true"; let forceShowIntro = searchParams.get("cover") === "true"; if ( (forceShowIntro || !rememberDismissedIntro) && @@ -266,7 +267,7 @@ class Dashboard extends React.Component { } onClose={() => { actions.toggleIntroPopup(); - localStorage.setItem("rememberDismissedIntro", "true"); + localStorage.setItem(localStorageKey, "true"); }} content={app.intro} styles={styles}