diff --git a/frontend/src/app/components/transaction/transaction-preview.component.html b/frontend/src/app/components/transaction/transaction-preview.component.html index 44be1dcfa..1708d4b47 100644 --- a/frontend/src/app/components/transaction/transaction-preview.component.html +++ b/frontend/src/app/components/transaction/transaction-preview.component.html @@ -23,7 +23,7 @@ - ‎{{ (tx.status.confirmed ? tx.status.block_time : transactionTime) * 1000 | date:'yyyy-MM-dd HH:mm' }} + ‎{{ transactionTime * 1000 | date:'yyyy-MM-dd HH:mm' }} Fee {{ tx.fee | number }} sat diff --git a/frontend/src/app/components/transaction/transaction-preview.component.ts b/frontend/src/app/components/transaction/transaction-preview.component.ts index 040200cf6..914801e70 100644 --- a/frontend/src/app/components/transaction/transaction-preview.component.ts +++ b/frontend/src/app/components/transaction/transaction-preview.component.ts @@ -165,7 +165,10 @@ export class TransactionPreviewComponent implements OnInit, OnDestroy { this.opReturns = this.getOpReturns(this.tx); this.extraData = this.chooseExtraData(); - if (!tx.status.confirmed && tx.firstSeen) { + if (tx.status.confirmed) { + this.transactionTime = tx.status.block_time; + this.openGraphService.waitOver('tx-time-' + this.txId); + } else if (!tx.status.confirmed && tx.firstSeen) { this.transactionTime = tx.firstSeen; this.openGraphService.waitOver('tx-time-' + this.txId); } else {