Skip to content

Commit

Permalink
🔥 Properly save the removed state
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival committed Oct 28, 2017
1 parent e674ed1 commit 608dadb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/redux/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ const getMiddleware = history => [
storage.createMiddleware(
engine,
[],
[authActionTypes.LOGIN_SUCCESS, switchingActionTypes.REMOVE_USER]
[
authActionTypes.LOGIN_SUCCESS,
authActionTypes.LOGOUT,
switchingActionTypes.REMOVE_USER
]
)
];

Expand Down

0 comments on commit 608dadb

Please sign in to comment.