chore: sign out after deactivating account (#4476)

This commit is contained in:
Aaryan Khandelwal 2024-05-16 04:24:50 +05:30 committed by GitHub
parent a195f1bf7e
commit 12cd22bba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,7 @@ export const SwitchOrDeleteAccountModal: React.FC<Props> = (props) => {
message: "Account deleted successfully.",
});
mutate("CURRENT_USER_DETAILS", null);
signOut();
setTheme("system");
router.push("/");
handleClose();