Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Promise.resolve (resolves #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
andykog authored Jan 12, 2018
1 parent 17baa2d commit 25e7ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/authStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AuthStore {
@action logout() {
commonStore.setToken(undefined);
userStore.forgetUser();
return new Promise(res => res());
return Promise.resolve();
}
}

Expand Down

0 comments on commit 25e7ed4

Please sign in to comment.