diff --git a/src/App.tsx b/src/App.tsx index fbb3a9e..abd8020 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -67,7 +67,7 @@ const App = () => { // localStorage.removeItem("lastLocation"); navigate("/login"); } else { - navigate(localStorage.getItem("lastLocation") || "/dashboard"); + navigate(localStorage.getItem("lastLocation") || "/posts"); } }, [user]); diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx index b5a4b44..703c9ce 100644 --- a/src/components/Nav.tsx +++ b/src/components/Nav.tsx @@ -26,7 +26,7 @@ const Nav = ({ aside, setAside }: Props) => {
{ localStorage.setItem("lastLocation", "/dashboard");