Merge pull request #5701 from mempool/natsoni/fix-inscription-badge
Fix inscription badge disappearing when loading more inputs
This commit is contained in:
commit
4b56144e6e
@ -351,8 +351,12 @@ export class TransactionsListComponent implements OnInit, OnChanges {
|
|||||||
this.electrsApiService.getTransaction$(tx.txid)
|
this.electrsApiService.getTransaction$(tx.txid)
|
||||||
.subscribe((newTx) => {
|
.subscribe((newTx) => {
|
||||||
tx['@vinLoaded'] = true;
|
tx['@vinLoaded'] = true;
|
||||||
|
let temp = tx.vin;
|
||||||
tx.vin = newTx.vin;
|
tx.vin = newTx.vin;
|
||||||
tx.fee = newTx.fee;
|
tx.fee = newTx.fee;
|
||||||
|
for (const [index, vin] of temp.entries()) {
|
||||||
|
newTx.vin[index].isInscription = vin.isInscription;
|
||||||
|
}
|
||||||
this.ref.markForCheck();
|
this.ref.markForCheck();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user