1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-30 19:00:53 +00:00

clear SignVerifyReducer on ACCOUNT.DISPOSE action

This commit is contained in:
Szymon Lesisz 2018-11-22 15:35:25 +01:00
parent bbcf2cf70c
commit 5cf996f000

View File

@ -1,6 +1,7 @@
/* @flow */ /* @flow */
import type { Action } from 'flowtype'; import type { Action } from 'flowtype';
import * as ACCOUNT from 'actions/constants/account';
import * as ACTION from 'actions/constants/signVerify'; import * as ACTION from 'actions/constants/signVerify';
export type State = { export type State = {
@ -46,6 +47,9 @@ export default (state: State = initialState, action: Action): State => {
return { ...state, ...change }; return { ...state, ...change };
} }
case ACCOUNT.DISPOSE:
return initialState;
case ACTION.CLEAR_SIGN: case ACTION.CLEAR_SIGN:
return { return {
...state, ...state,