Fix inscription disappearing when loading more inputs

This commit is contained in:
natsoni 2024-12-19 14:47:42 +01:00
parent 01df22ef86
commit 0a933d022c
No known key found for this signature in database
GPG key ID: C65917583181743B

View file

@ -351,8 +351,12 @@ export class TransactionsListComponent implements OnInit, OnChanges {
this.electrsApiService.getTransaction$(tx.txid)
.subscribe((newTx) => {
tx['@vinLoaded'] = true;
let temp = tx.vin;
tx.vin = newTx.vin;
tx.fee = newTx.fee;
for (const [index, vin] of temp.entries()) {
newTx.vin[index].isInscription = vin.isInscription;
}
this.ref.markForCheck();
});
}