From 18ffbb7317715d078639c2d10a1bc67d80863f56 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Fri, 26 Apr 2024 09:27:41 +0000 Subject: [PATCH] fix(AccountDropdownMenu): await token revocation request --- packages/web/src/components/AccountDropdownMenu/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/AccountDropdownMenu/index.jsx b/packages/web/src/components/AccountDropdownMenu/index.jsx index 31bfa986..e4889c89 100644 --- a/packages/web/src/components/AccountDropdownMenu/index.jsx +++ b/packages/web/src/components/AccountDropdownMenu/index.jsx @@ -20,7 +20,7 @@ function AccountDropdownMenu(props) { const { open, onClose, anchorEl, id } = props; const logout = async () => { - revokeAccessTokenMutation.mutate(); + await revokeAccessTokenMutation.mutateAsync(); authentication.removeToken(); await apolloClient.clearStore();