From bcb404e3218ab898608a3b8e70a4218552da6435 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 4 Oct 2018 10:48:50 +0200 Subject: [PATCH] clear "selectedAccount" reducer on ACCOUNT.DISPOSE action --- src/reducers/SelectedAccountReducer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reducers/SelectedAccountReducer.js b/src/reducers/SelectedAccountReducer.js index 1b400668..d00d5f00 100644 --- a/src/reducers/SelectedAccountReducer.js +++ b/src/reducers/SelectedAccountReducer.js @@ -38,6 +38,8 @@ export const initialState: State = { export default (state: State = initialState, action: Action): State => { switch (action.type) { + case ACCOUNT.DISPOSE: + return initialState; case ACCOUNT.UPDATE_SELECTED_ACCOUNT: return action.payload; default: