Skip to content

Commit f2590b8

Browse files
committed
fixup! Fix bug with relevant changedTxs set
1 parent 6d7b185 commit f2590b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks/useTransactionList.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ export function useTransactionList(wallet: EdgeCurrencyWallet, tokenId: EdgeToke
8484
// but just overlay the new transactions over the old ones:
8585
const cleanupChanged = wallet.on('transactionsChanged', txs => {
8686
let relevant = false
87-
const existingTxidsMap = new Set<string>()
88-
streamedTxs.forEach(tx => existingTxidsMap.add(tx.txid))
87+
const existingTxidsSet = new Set<string>()
88+
streamedTxs.forEach(tx => existingTxidsSet.add(tx.txid))
8989
for (const tx of txs) {
90-
if (tx.tokenId === tokenId && existingTxidsMap.has(tx.txid)) {
90+
if (tx.tokenId === tokenId && existingTxidsSet.has(tx.txid)) {
9191
relevant = true
9292
changedTxs.set(tx.txid, tx)
9393
}

0 commit comments

Comments
 (0)