Merge pull request 'minor fixes' (#2) from feature/authentication into develop

Reviewed-on: DigiMantra/digiev_frontend#2
This commit is contained in:
Mohit kalshan 2025-01-21 10:03:52 +00:00
commit 6bc060bb52

View file

@ -17,7 +17,7 @@ const App: React.FC<ReactCookieProps> = ({ cookies }) => {
); );
useEffect(() => { useEffect(() => {
if (isPanel && isAuthenticated) { if (isPanel && isCookiePresent) {
navigate("/panel/dashboard"); navigate("/panel/dashboard");
} }
}, [isPanel, isAuthenticated, searchParams]); }, [isPanel, isAuthenticated, searchParams]);