🐛(frontend) fix duplicate call on getMe

Fix duplicate call on getMe.
The logout process was refactored recently,
the hook dependency is not necessary anymore and
was creating a duplicate call on getMe.
This commit is contained in:
Anthony LC
2024-06-03 12:57:56 +02:00
committed by Anthony LC
parent c7d1312f89
commit b8499a539e

View File

@@ -10,7 +10,7 @@ export const Auth = ({ children }: PropsWithChildren) => {
useEffect(() => {
initAuth();
}, [initAuth, authenticated]);
}, [initAuth]);
if (!authenticated) {
return (