From bbcf2cf70c4414def98881e0b23c770dc92c4731 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 22 Nov 2018 15:31:17 +0100 Subject: [PATCH 1/2] remove console.log --- src/components/modals/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modals/index.js b/src/components/modals/index.js index 1af09040..9e0a6330 100644 --- a/src/components/modals/index.js +++ b/src/components/modals/index.js @@ -65,7 +65,7 @@ const ModalWindow = styled.div` const getDeviceContextModal = (props: Props) => { const { modal, modalActions } = props; if (modal.context !== MODAL.CONTEXT_DEVICE) return null; - console.log('modal.windowType', modal.windowType); + switch (modal.windowType) { case UI.REQUEST_PIN: return ( From 5cf996f0008846b31ac6bf886654a39b6a65a05e Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Thu, 22 Nov 2018 15:35:25 +0100 Subject: [PATCH 2/2] clear SignVerifyReducer on ACCOUNT.DISPOSE action --- src/reducers/SignVerifyReducer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reducers/SignVerifyReducer.js b/src/reducers/SignVerifyReducer.js index 2188dc0b..e5d880f5 100644 --- a/src/reducers/SignVerifyReducer.js +++ b/src/reducers/SignVerifyReducer.js @@ -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,