1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +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 */
import type { Action } from 'flowtype';
import * as ACCOUNT from 'actions/constants/account';
import * as ACTION from 'actions/constants/signVerify';
export type State = {
@ -46,6 +47,9 @@ export default (state: State = initialState, action: Action): State => {
return { ...state, ...change };
}
case ACCOUNT.DISPOSE:
return initialState;
case ACTION.CLEAR_SIGN:
return {
...state,