minor fixes
This commit is contained in:
parent
305bbebffb
commit
0d38a260cf
|
@ -17,7 +17,7 @@ const App: React.FC<ReactCookieProps> = ({ cookies }) => {
|
|||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (isPanel && isAuthenticated) {
|
||||
if (isPanel && isCookiePresent) {
|
||||
navigate("/panel/dashboard");
|
||||
}
|
||||
}, [isPanel, isAuthenticated, searchParams]);
|
||||
|
|
Loading…
Reference in a new issue