diff --git a/src/flowtype/index.js b/src/flowtype/index.js index 74d33214..6b85a8a9 100644 --- a/src/flowtype/index.js +++ b/src/flowtype/index.js @@ -68,7 +68,7 @@ export type UnknownDevice = $Exact<{ +label: string, +features: null, state: ?string, - + remember: boolean; // device should be remembered connected: boolean; // device is connected available: boolean; // device cannot be used because of features.passphrase_protection is different then expected diff --git a/src/js/actions/TrezorConnectActions.js b/src/js/actions/TrezorConnectActions.js index 1aa9eac3..88fa0cc1 100644 --- a/src/js/actions/TrezorConnectActions.js +++ b/src/js/actions/TrezorConnectActions.js @@ -173,7 +173,7 @@ export const postInit = (): ThunkAction => (dispatch: Dispatch, getState: GetSta } else { if (devices.length > 0) { - const unacquired: ?TrezorDevice = devices.find(d => d.unacquired); + const unacquired: ?TrezorDevice = devices.find(d => d.type === 'unacquired'); if (unacquired) { dispatch( onSelectDevice(unacquired) ); } else {