Skip to content

Commit feb4129

Browse files
committed
Fix bug with relevant changedTxs set
Only transactions that have been streamed are relevant for the changedTxs set because we _always_ stomp the changed tx onto the streamedTxs array.
1 parent aef35b0 commit feb4129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useTransactionList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function useTransactionList(wallet: EdgeCurrencyWallet, tokenId: EdgeToke
8585
const cleanupChanged = wallet.on('transactionsChanged', txs => {
8686
let relevant = false
8787
for (const tx of txs) {
88-
if (tx.tokenId === tokenId) {
88+
if (tx.tokenId === tokenId && streamedTxs.some(streamedTx => streamedTx.txid === tx.txid)) {
8989
relevant = true
9090
changedTxs.set(tx.txid, tx)
9191
}

0 commit comments

Comments
 (0)