fix errors

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-01-05 09:28:58 +01:00
parent ef5ed65526
commit e19e6844f4
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ function Layout(){
const { user, loading } = useContext(AuthContext);
/* if (loading) return <p>Loading</p>;
if (loading) return <p>Loading</p>;
if (!user) return <Navigate to="/login" />;
if(user && user.validate === 0) return <Navigate to="/error/validation" />;*/
if(user && user.validate === 0) return <Navigate to="/error/validation" />;
return (
<div>