fix: deactivate account post loading (#3022)

This commit is contained in:
Lakhan Baheti 2023-12-07 17:31:58 +05:30 committed by sriram veeraghanta
parent 151ec259d8
commit 68dcfcd451
3 changed files with 13 additions and 3 deletions

View file

@ -374,6 +374,9 @@ class UserStore implements IUserStore {
deactivateAccount = async () => {
try {
await this.userService.deactivateAccount();
this.currentUserError = null;
this.currentUser = null;
this.isUserLoggedIn = false;
} catch (error) {
throw error;
}