From c0aa9ff9257ec14ed211da3635c27ac966e3369c Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 10 Mar 2020 15:33:58 +0700 Subject: [PATCH] Don't lookup transaction times for confirmed transactions --- .../src/app/components/transaction/transaction.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index d195d96db..f6f627889 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -42,6 +42,7 @@ export class TransactionComponent implements OnInit, OnDestroy { this.txId = params.get('id') || ''; this.error = undefined; this.isLoadingTx = true; + this.transactionTime = -1; document.body.scrollTo(0, 0); if (history.state.data) { return of(history.state.data); @@ -56,9 +57,8 @@ export class TransactionComponent implements OnInit, OnDestroy { if (!tx.status.confirmed) { this.websocketService.startTrackTransaction(tx.txid); + this.getTransactionTime(); } - - this.getTransactionTime(); }, (error) => { this.error = error;