1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 00:18:07 +00:00

clear "selectedAccount" reducer on ACCOUNT.DISPOSE action

This commit is contained in:
Szymon Lesisz 2018-10-04 10:48:50 +02:00
parent 469e9d6bf3
commit bcb404e321

View File

@ -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: