Skip to content

Commit a0e57be

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 a0e57be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- changed: Replace Thorchain Savers quoting with an information modal about the shutdown.
1515
- fixed: Show correct staked balance for deprecated Velodrome pools
1616
- fixed: Crash when retrieving `exchangeRates` in some situations when no internet is available
17+
- fixed: Transaction metadata loading bugs.
1718

1819
## 4.21.1 (2025-01-28)
1920

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)