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);