mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-20 03:52:01 +00:00
enable device dropdown if webusb & unreadable/unacquired device
This commit is contained in:
parent
ae98492562
commit
d9069b6824
@ -49,7 +49,7 @@ export const DeviceSelect = (props: Props) => {
|
|||||||
|
|
||||||
const deviceCount = devices.length;
|
const deviceCount = devices.length;
|
||||||
const webusb: boolean = !!((transport && transport.version.indexOf('webusb') >= 0));
|
const webusb: boolean = !!((transport && transport.version.indexOf('webusb') >= 0));
|
||||||
const disabled: boolean = (devices.length < 1 && !webusb) || (devices.length === 1 && !selected.features);
|
const disabled: boolean = (devices.length < 1 && !webusb) || (devices.length === 1 && !selected.features && !webusb);
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
css += ' disabled';
|
css += ' disabled';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user