diff --git a/src/layouts/AppHeader.tsx b/src/layouts/AppHeader.tsx index acdf3e056..62c09a477 100644 --- a/src/layouts/AppHeader.tsx +++ b/src/layouts/AppHeader.tsx @@ -58,7 +58,7 @@ export function AppHeader() { const disableTestnet = () => { localStorage.setItem('testnetsEnabled', 'false'); - // Set window.location to trigger a page reload when navigating to the the dashboard + // Set window.location to trigger a page reload when navigating to the dashboard window.location.href = '/'; }; diff --git a/src/layouts/components/TestNetModeSwitcher.tsx b/src/layouts/components/TestNetModeSwitcher.tsx index c3f58f6e7..365b9d556 100644 --- a/src/layouts/components/TestNetModeSwitcher.tsx +++ b/src/layouts/components/TestNetModeSwitcher.tsx @@ -15,7 +15,7 @@ export const TestNetModeSwitcher = ({ component = ListItem }: TestNetModeSwitche const newState = !testnetsEnabled; setTestnetsMode(!testnetsEnabled); localStorage.setItem(testnetsEnabledId, newState ? 'true' : 'false'); - // Set window.location to trigger a page reload when navigating to the the dashboard + // Set window.location to trigger a page reload when navigating to the dashboard window.location.href = '/'; };