1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +00:00

fix localStorage findPendings method

This commit is contained in:
Szymon Lesisz 2018-05-25 11:27:06 +02:00
parent 283af40356
commit 09fe94c71d

View File

@ -57,8 +57,9 @@ const findDiscovery = (devices: Array<TrezorDevice>, discovery: Array<Discovery>
}
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));
}, []);
}