From 3c89c782e3a0fb3fa3833bd20ca279f42968afc5 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 6 Feb 2019 18:52:12 +0100 Subject: [PATCH] Fixed webusb button --- src/utils/device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/device.js b/src/utils/device.js index bd3b29aa..e0cada08 100644 --- a/src/utils/device.js +++ b/src/utils/device.js @@ -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, transport: Transport) => { if (isWebUSB(transport)) return false; // always enabled if webusb