mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-17 18:42:01 +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 => {
|
export default (state: State = initialState, action: Action): State => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
case ACCOUNT.DISPOSE:
|
||||||
|
return initialState;
|
||||||
case ACCOUNT.UPDATE_SELECTED_ACCOUNT:
|
case ACCOUNT.UPDATE_SELECTED_ACCOUNT:
|
||||||
return action.payload;
|
return action.payload;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user