From 2a2529d8cbf2ea2063da7acbd7a2010bd4aed87c Mon Sep 17 00:00:00 2001 From: Remko Date: Wed, 29 Nov 2023 20:45:26 +0100 Subject: [PATCH] reload bug --- .../templateParts/themeSwitcherTopBar/ThemeSwitcherTopBar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwa/src/templates/templateParts/themeSwitcherTopBar/ThemeSwitcherTopBar.tsx b/pwa/src/templates/templateParts/themeSwitcherTopBar/ThemeSwitcherTopBar.tsx index 66148515..85304248 100644 --- a/pwa/src/templates/templateParts/themeSwitcherTopBar/ThemeSwitcherTopBar.tsx +++ b/pwa/src/templates/templateParts/themeSwitcherTopBar/ThemeSwitcherTopBar.tsx @@ -36,6 +36,8 @@ export const ThemeSwitcherTopBar: React.FC = () => { React.useEffect(() => { if (!watchTheme) return; + if (window.sessionStorage.getItem("SHOW_THEME_SWITCHER") !== "true") return; + navigate("/"); initiateFromJSON(watchTheme.value);