Update TrezorDevice's `isUsedElsewhere` & `unacquired` properties

- both properties are now deprecated
- following properties are now used instead (matching trezor-connect):
 - `type` with possible values `acquired` | `unacquired` | `unreadable`
 - `status` with possible values `available` | `occupied` | `used`
pull/2/head
Vasek Mlejnsky 6 years ago
parent e1b7591a98
commit cc507f8ae8

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

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

Loading…
Cancel
Save