Possible fix for failing test

This commit is contained in:
softsimon 2022-08-28 17:48:51 +02:00
parent 5878def72c
commit 1ca1d0b109
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

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;