mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Fix logout not working properly after moving logic to UserStore
This commit is contained in:
parent
2ad2ea242d
commit
b24e66ed11
@ -45,9 +45,10 @@ class UserStore {
|
||||
}
|
||||
|
||||
onLogoutCurrentUser() {
|
||||
this.getInstance()
|
||||
.performLogoutCurrentUser()
|
||||
.then(() => {
|
||||
this.getInstance().performLogoutCurrentUser();
|
||||
}
|
||||
|
||||
onSuccessLogoutCurrentUser() {
|
||||
EventActions.userDidLogout();
|
||||
|
||||
// Reset all stores back to their initial state
|
||||
@ -59,11 +60,6 @@ class UserStore {
|
||||
// Since we've just logged out, we can set this store's
|
||||
// hasLoaded flag back to true as there is no current user.
|
||||
this.userMeta.hasLoaded = true;
|
||||
});
|
||||
}
|
||||
|
||||
onSuccessLogoutCurrentUser() {
|
||||
this.currentUser = {};
|
||||
}
|
||||
|
||||
onErrorCurrentUser(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user