mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
Fixed webusb button
This commit is contained in:
parent
0040c5d583
commit
3c89c782e3
@ -79,7 +79,7 @@ export const getStatusName = (deviceStatus: string): string => {
|
||||
}
|
||||
};
|
||||
|
||||
export const isWebUSB = (transport: Transport) => !!((transport.type && transport.version.indexOf('webusb') >= 0));
|
||||
export const isWebUSB = (transport: Transport) => !!((transport.type && transport.type === 'webusb'));
|
||||
|
||||
export const isDisabled = (selectedDevice: TrezorDevice, devices: Array<TrezorDevice>, transport: Transport) => {
|
||||
if (isWebUSB(transport)) return false; // always enabled if webusb
|
||||
|
Loading…
Reference in New Issue
Block a user