mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-13 01:20:59 +00:00
fix lint
This commit is contained in:
parent
c2544c2461
commit
42b7d6b3f0
@ -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,
|
||||||
|
@ -92,7 +92,8 @@ export const getSelectedAccount = (state: State): ?Account => {
|
|||||||
return state.accounts.find(
|
return state.accounts.find(
|
||||||
a =>
|
a =>
|
||||||
a.imported === isImported &&
|
a.imported === isImported &&
|
||||||
(a.deviceState === device.state || a.imported) &&
|
(a.deviceState === device.state ||
|
||||||
|
(a.imported && a.deviceID === (device.features || {}).device_id)) &&
|
||||||
a.index === index &&
|
a.index === index &&
|
||||||
a.network === locationState.network
|
a.network === locationState.network
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user