mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
Fixing delete acct logout bug.
This commit is contained in:
parent
b0e456d754
commit
277cd2ac37
1 changed files with 2 additions and 2 deletions
|
@ -1179,7 +1179,6 @@ export class Person extends Component<any, PersonState> {
|
|||
WebSocketService.Instance.send(
|
||||
wsClient.deleteAccount(i.state.deleteAccountForm)
|
||||
);
|
||||
i.handleLogoutClick(i);
|
||||
}
|
||||
|
||||
setUserInfo() {
|
||||
|
@ -1273,7 +1272,8 @@ export class Person extends Component<any, PersonState> {
|
|||
deleteAccountLoading: false,
|
||||
deleteAccountShowConfirm: false,
|
||||
});
|
||||
this.context.router.history.push("/");
|
||||
UserService.Instance.logout();
|
||||
window.location.href = "/";
|
||||
} else if (op == UserOperation.AddAdmin) {
|
||||
let data = wsJsonToRes<AddAdminResponse>(msg).data;
|
||||
this.state.siteRes.admins = data.admins;
|
||||
|
|
Loading…
Reference in a new issue