mirror of
https://github.com/mempool/mempool.git
synced 2025-04-07 19:38:32 +02:00
Don't lookup transaction times for confirmed transactions
This commit is contained in:
parent
3c38aaaf33
commit
c0aa9ff925
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user