1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +00:00

quickfix: remove unnecessary condition from ModalReducer

TrezorConnect will emit UI.CLOSE_UI_WINDOW which will close modal window
This commit is contained in:
Szymon Lesisz 2018-10-19 13:21:55 +02:00
parent 22708cc088
commit d2d184773d

View File

@ -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: