From 608dadb95c4d2579f98b50d896e003ee929660bd Mon Sep 17 00:00:00 2001 From: Simon Rozsival Date: Sat, 28 Oct 2017 15:00:37 +0200 Subject: [PATCH] :fire: Properly save the removed state --- src/redux/store.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/redux/store.js b/src/redux/store.js index 481a073b0..602572154 100644 --- a/src/redux/store.js +++ b/src/redux/store.js @@ -24,7 +24,11 @@ const getMiddleware = history => [ storage.createMiddleware( engine, [], - [authActionTypes.LOGIN_SUCCESS, switchingActionTypes.REMOVE_USER] + [ + authActionTypes.LOGIN_SUCCESS, + authActionTypes.LOGOUT, + switchingActionTypes.REMOVE_USER + ] ) ];