|
|
@ -21,12 +21,14 @@ export type ImportAccountAction =
|
|
|
|
error: ?string,
|
|
|
|
error: ?string,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const findIndex = (accounts: Array<Account>, network: Network, device: TrezorDevice): number => {
|
|
|
|
const findIndex = (accounts: Array<Account>, network: Network, device: TrezorDevice): number => {
|
|
|
|
return accounts.filter(
|
|
|
|
return accounts.filter(
|
|
|
|
a => a.imported === true && a.network === network.shortcut && a.deviceID === (device.features|| {}).device_id
|
|
|
|
a =>
|
|
|
|
|
|
|
|
a.imported === true &&
|
|
|
|
|
|
|
|
a.network === network.shortcut &&
|
|
|
|
|
|
|
|
a.deviceID === (device.features || {}).device_id
|
|
|
|
).length;
|
|
|
|
).length;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const importAddress = (
|
|
|
|
export const importAddress = (
|
|
|
|
address: string,
|
|
|
|
address: string,
|
|
|
|