1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-05 14:22:35 +00:00

Use 'device.status' instead of 'device.isUsedElsewhere'

This commit is contained in:
Vasek Mlejnsky 2018-07-30 13:44:53 +02:00
parent 7fa386d67b
commit e1b7591a98

View File

@ -57,6 +57,7 @@ export default function modal(state: State = initialState, action: Action): Stat
if (state.opened && action.device.path === state.device.path && action.device.status === 'occupied') { if (state.opened && action.device.path === state.device.path && action.device.status === 'occupied') {
return initialState; return initialState;
} }
return state; return state;
case DEVICE.DISCONNECT: case DEVICE.DISCONNECT: