🐛(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:
@@ -10,7 +10,7 @@ export const Auth = ({ children }: PropsWithChildren) => {
|
||||
|
||||
useEffect(() => {
|
||||
initAuth();
|
||||
}, [initAuth, authenticated]);
|
||||
}, [initAuth]);
|
||||
|
||||
if (!authenticated) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user