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:
parent
7fa386d67b
commit
e1b7591a98
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user