From 12cd22bba0770699c5b1e4dec0a052745fc338b3 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Thu, 16 May 2024 04:24:50 +0530 Subject: [PATCH] chore: sign out after deactivating account (#4476) --- web/components/onboarding/switch-delete-account-modal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/onboarding/switch-delete-account-modal.tsx b/web/components/onboarding/switch-delete-account-modal.tsx index 7b03322a2..bfa17387f 100644 --- a/web/components/onboarding/switch-delete-account-modal.tsx +++ b/web/components/onboarding/switch-delete-account-modal.tsx @@ -62,6 +62,7 @@ export const SwitchOrDeleteAccountModal: React.FC = (props) => { message: "Account deleted successfully.", }); mutate("CURRENT_USER_DETAILS", null); + signOut(); setTheme("system"); router.push("/"); handleClose();