From 0d38a260cf982bad59183a7f6fb23dd5c7f2c4fc Mon Sep 17 00:00:00 2001 From: Mohit Kalshan Date: Tue, 21 Jan 2025 15:30:07 +0530 Subject: [PATCH] minor fixes --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);