1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

fix isWebUSB util

This commit is contained in:
slowbackspace 2020-03-31 14:42:53 +02:00
parent 0c04aef293
commit a7939601e5

View File

@ -79,7 +79,8 @@ export const getStatusName = (deviceStatus: string, intl: IntlShape): string =>
} }
}; };
export const isWebUSB = (transport: Transport) => !!(transport.type && transport.type === 'webusb'); export const isWebUSB = (transport: Transport) =>
!!(transport.type && transport.type === 'WebUsbPlugin');
export const isDisabled = ( export const isDisabled = (
selectedDevice: TrezorDevice, selectedDevice: TrezorDevice,