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:
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…
Reference in New Issue
Block a user