diff --git a/components/header.js b/components/header.js index 0f477b80..63977a39 100644 --- a/components/header.js +++ b/components/header.js @@ -29,7 +29,7 @@ function WalletSummary ({ me }) { function Back () { const router = useRouter() - if (typeof window !== 'undefined' && (window.navigation.canGoBack === undefined || window.navigation.canGoBack)) { + if (typeof window !== 'undefined' && (typeof window.navigation === 'undefined' || window.navigation.canGoBack === undefined || window?.navigation.canGoBack)) { return router.back()} /> } return null