Merge pull request 'minor fixes' (#2) from feature/authentication into develop
Reviewed-on: DigiMantra/digiev_frontend#2
This commit is contained in:
commit
6bc060bb52
|
@ -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