dev-jaanvi #1
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue