diff --git a/src/App.js b/src/App.js index 805e9b3..b25496a 100644 --- a/src/App.js +++ b/src/App.js @@ -22,6 +22,7 @@ function App() { const location = useLocation(); useEffect(() => { + if (!window) return; window.scrollTo(0, 0); }, [location]);