diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index 9f805e4e7..d42034af1 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -465,7 +465,7 @@
First seen |
|
- } @else if (transactionTime === -1) {
+ } @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);
}
});
}