mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-07 23:28:09 +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,
|
+label: string,
|
||||||
+features: null,
|
+features: null,
|
||||||
state: ?string,
|
state: ?string,
|
||||||
|
|
||||||
remember: boolean; // device should be remembered
|
remember: boolean; // device should be remembered
|
||||||
connected: boolean; // device is connected
|
connected: boolean; // device is connected
|
||||||
available: boolean; // device cannot be used because of features.passphrase_protection is different then expected
|
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 {
|
} else {
|
||||||
|
|
||||||
if (devices.length > 0) {
|
if (devices.length > 0) {
|
||||||
const unacquired: ?TrezorDevice = devices.find(d => d.unacquired);
|
const unacquired: ?TrezorDevice = devices.find(d => d.type === 'unacquired');
|
||||||
if (unacquired) {
|
if (unacquired) {
|
||||||
dispatch( onSelectDevice(unacquired) );
|
dispatch( onSelectDevice(unacquired) );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user