diff --git a/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts b/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts index 3e0e514af..ff1e86596 100644 --- a/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts +++ b/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts @@ -71,13 +71,15 @@ export class TxBowtieGraphTooltipComponent implements OnChanges { if (changes.line?.currentValue) { if (changes.line.currentValue.type === 'input') { if (!this.inputStatus[changes.line.currentValue.index]) { - this.apiService.getTransactionStatus$(changes.line.currentValue.txid).pipe( - tap((status) => { - changes.line.currentValue.status = status; - this.inputStatus[changes.line.currentValue.index] = status; - this.fetchPrices(changes); - }) - ).subscribe(); + if (changes.line.currentValue.txid) { + this.apiService.getTransactionStatus$(changes.line.currentValue.txid).pipe( + tap((status) => { + changes.line.currentValue.status = status; + this.inputStatus[changes.line.currentValue.index] = status; + this.fetchPrices(changes); + }) + ).subscribe(); + } } else { changes.line.currentValue.status = this.inputStatus[changes.line.currentValue.index]; this.fetchPrices(changes);