fix(AccountDropdownMenu): await token revocation request
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user