Wait more before redirecting

This commit is contained in:
Arthur Belleville 2025-10-16 21:16:33 +02:00
parent 48f666216d
commit fddc9a8942
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ export const ProtectedRoute = ({ fallback, shouldRedirectToCurrentPage }: Protec
useEffect(() => {
const timer = setTimeout(() => {
setIsLoading(false);
}, 200);
}, 500);
return () => clearTimeout(timer);
}, [user, fallback]);