Skip to content

Commit 6542a1d

Browse files
committed
fix: update no longer pending transaction
1 parent a5d7f56 commit 6542a1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/composables/transactionList.ts

+9
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,15 @@ export function useTransactionList({ store }: IDefaultComposableOptions) {
286286
}
287287
});
288288

289+
(transactions.value[address]?.loaded?.filter(({ pending }) => pending) || [])
290+
.forEach((transaction) => {
291+
const newTransaction = preparedTransactions
292+
.find((tx) => tx.hash === transaction.hash && !tx.pending);
293+
if (newTransaction) {
294+
updateAccountTransaction(address, newTransaction);
295+
}
296+
});
297+
289298
preparedTransactions = recent
290299
? preparedTransactions.slice(0, limit)
291300
: preparedTransactions;

0 commit comments

Comments
 (0)