1
0
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:
Vladimir Volek 2019-02-06 18:52:12 +01:00
parent 0040c5d583
commit 3c89c782e3

View File

@ -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