From d2d184773da05bb7714adf39911b45c1e34ffc49 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 19 Oct 2018 13:21:55 +0200 Subject: [PATCH] quickfix: remove unnecessary condition from ModalReducer TrezorConnect will emit UI.CLOSE_UI_WINDOW which will close modal window --- src/reducers/ModalReducer.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/reducers/ModalReducer.js b/src/reducers/ModalReducer.js index a425676a..4f3168df 100644 --- a/src/reducers/ModalReducer.js +++ b/src/reducers/ModalReducer.js @@ -44,14 +44,6 @@ export default function modal(state: State = initialState, action: Action): Stat windowType: action.type, }; - // device acquired - // close modal - case DEVICE.CHANGED: - if (state.context === MODAL.CONTEXT_DEVICE && action.device.path === state.device.path && action.device.status === 'occupied') { - return initialState; - } - return state; - // device connected // close modal if modal context is not 'device' case DEVICE.CONNECT: