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:
parent
469e9d6bf3
commit
bcb404e321
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user