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:
parent
22708cc088
commit
d2d184773d
@ -44,14 +44,6 @@ export default function modal(state: State = initialState, action: Action): Stat
|
|||||||
windowType: action.type,
|
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
|
// device connected
|
||||||
// close modal if modal context is not 'device'
|
// close modal if modal context is not 'device'
|
||||||
case DEVICE.CONNECT:
|
case DEVICE.CONNECT:
|
||||||
|
Loading…
Reference in New Issue
Block a user