From b8499a539e4c9ad591351c066f0a508e35130eb1 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 3 Jun 2024 12:57:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20duplicate=20call?= =?UTF-8?q?=20on=20getMe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/frontend/apps/desk/src/core/auth/Auth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/apps/desk/src/core/auth/Auth.tsx b/src/frontend/apps/desk/src/core/auth/Auth.tsx index bc314a7..865a815 100644 --- a/src/frontend/apps/desk/src/core/auth/Auth.tsx +++ b/src/frontend/apps/desk/src/core/auth/Auth.tsx @@ -10,7 +10,7 @@ export const Auth = ({ children }: PropsWithChildren) => { useEffect(() => { initAuth(); - }, [initAuth, authenticated]); + }, [initAuth]); if (!authenticated) { return (