diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 60cb8a9..7fdf273 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -74,7 +74,7 @@ const Navbar = (): JSX.Element => { if(!userCache) { localStorage.redirectTo = window.location.href setNavbarOpen(false) - redirectTo(router, 'logout') + redirectTo(router, 'login') } }} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer'> { userCache ? @@ -99,8 +99,8 @@ const Navbar = (): JSX.Element => { {/*