1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-07 15:18:13 +00:00

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`
This commit is contained in:
Vasek Mlejnsky 2018-08-02 11:44:52 +02:00
parent e1b7591a98
commit cc507f8ae8
2 changed files with 2 additions and 2 deletions

View File

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

View File

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