diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 55f7047e6..d42034af1 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -460,15 +460,15 @@ @if (isLoadingTx) { - } @else if (transactionTime === -1) { + } @else if (transactionTime > 0) { First seen - + } @else { First seen - + } diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index 158d56c7d..b6caf38d0 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -656,8 +656,12 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { this.apiService .getTransactionTimes$([this.tx.txid]) .subscribe((transactionTimes) => { - if (transactionTimes?.length) { + if (transactionTimes?.length && transactionTimes[0]) { this.transactionTime = transactionTimes[0]; + } else { + setTimeout(() => { + this.getTransactionTime(); + }, 2000); } }); }