Fix bowtie tooltip bug
This commit is contained in:
parent
19b0c4e410
commit
7b6163cfee
@ -71,13 +71,15 @@ export class TxBowtieGraphTooltipComponent implements OnChanges {
|
|||||||
if (changes.line?.currentValue) {
|
if (changes.line?.currentValue) {
|
||||||
if (changes.line.currentValue.type === 'input') {
|
if (changes.line.currentValue.type === 'input') {
|
||||||
if (!this.inputStatus[changes.line.currentValue.index]) {
|
if (!this.inputStatus[changes.line.currentValue.index]) {
|
||||||
this.apiService.getTransactionStatus$(changes.line.currentValue.txid).pipe(
|
if (changes.line.currentValue.txid) {
|
||||||
tap((status) => {
|
this.apiService.getTransactionStatus$(changes.line.currentValue.txid).pipe(
|
||||||
changes.line.currentValue.status = status;
|
tap((status) => {
|
||||||
this.inputStatus[changes.line.currentValue.index] = status;
|
changes.line.currentValue.status = status;
|
||||||
this.fetchPrices(changes);
|
this.inputStatus[changes.line.currentValue.index] = status;
|
||||||
})
|
this.fetchPrices(changes);
|
||||||
).subscribe();
|
})
|
||||||
|
).subscribe();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
changes.line.currentValue.status = this.inputStatus[changes.line.currentValue.index];
|
changes.line.currentValue.status = this.inputStatus[changes.line.currentValue.index];
|
||||||
this.fetchPrices(changes);
|
this.fetchPrices(changes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user