From 7f45fc8d396e2bf57627442d3987c19e86ec082c Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 27 Jan 2025 16:08:38 +0100 Subject: [PATCH] fix: apply feedback update --- frontend/src/hooks/entities/auth-hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/entities/auth-hooks.ts b/frontend/src/hooks/entities/auth-hooks.ts index b655b3b7..8dd9d783 100755 --- a/frontend/src/hooks/entities/auth-hooks.ts +++ b/frontend/src/hooks/entities/auth-hooks.ts @@ -71,8 +71,8 @@ export const useLogout = ( return await apiClient.logout(); }, onSuccess: async () => { - send(EBCEvent.LOGOUT_END_SESSION); queryClient.removeQueries([CURRENT_USER_KEY]); + send(EBCEvent.LOGOUT_END_SESSION); await logoutRedirection(); toast.success(t("message.logout_success")); },