fix: deactivate account post loading (#3022)
This commit is contained in:
parent
151ec259d8
commit
68dcfcd451
3 changed files with 13 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue