diff --git a/src/App.tsx b/src/App.tsx index bf0e11b..c98733b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,7 @@ const App: React.FC = ({ cookies }) => { ); useEffect(() => { - if (isPanel && isAuthenticated) { + if (isPanel && isCookiePresent) { navigate("/panel/dashboard"); } }, [isPanel, isAuthenticated, searchParams]);