Skip to content

Commit

Permalink
fix(manager): Fix console errors on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
David Emory committed May 10, 2018
1 parent 7918eee commit b9f34e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/manager/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ export function userLogout () {

export function logout () {
return function (dispatch, getState) {
dispatch(userLogout())
// dispatch(userLogout()) // disabled to avoid console errors on logout
// TODO: determine if any further action is needed to clear store on user
// logout. If not, completely remove USER_LOGGED_OUT from code
getState().user.auth0.logout()
}
}
Expand Down

0 comments on commit b9f34e7

Please # to comment.