Wait more before redirecting
This commit is contained in:
parent
48f666216d
commit
fddc9a8942
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export const ProtectedRoute = ({ fallback, shouldRedirectToCurrentPage }: Protec
|
|||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
setIsLoading(false);
|
||||
}, 200);
|
||||
}, 500);
|
||||
return () => clearTimeout(timer);
|
||||
}, [user, fallback]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue