Merge pull request #2424 from mempool/simon/transactions-list-fix-attempt

Possible fix for failing test
This commit is contained in:
softsimon 2022-08-28 18:26:28 +02:00 committed by GitHub
commit 2979f286cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,9 @@ export class TransactionsListComponent implements OnInit, OnChanges {
.pipe(
switchMap((txIds) => this.apiService.getOutspendsBatched$(txIds)),
tap((outspends: Outspend[][]) => {
if (!this.transactions) {
return;
}
const transactions = this.transactions.filter((tx) => !tx._outspends);
outspends.forEach((outspend, i) => {
transactions[i]._outspends = outspend;