mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
fix localStorage findPendings method
This commit is contained in:
parent
283af40356
commit
09fe94c71d
@ -57,8 +57,9 @@ const findDiscovery = (devices: Array<TrezorDevice>, discovery: Array<Discovery>
|
|||||||
}
|
}
|
||||||
|
|
||||||
const findPendingTxs = (accounts: Array<Account>, pending: Array<PendingTx>): Array<PendingTx> => {
|
const findPendingTxs = (accounts: Array<Account>, pending: Array<PendingTx>): Array<PendingTx> => {
|
||||||
return accounts.reduce((arr, account) => {
|
|
||||||
return arr.concat(pending.filter(a => a.address === account.address));
|
return accounts.reduce((result, account) => {
|
||||||
|
return result.concat(pending.filter(p => p.address === account.address && p.network === account.network));
|
||||||
}, []);
|
}, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user