Merge pull request #4948 from mempool/mononaut/54-years
it hasn't been 54 years since this transaction was submitted
This commit is contained in:
		
						commit
						df0da605e4
					
				| @ -460,15 +460,15 @@ | ||||
| <ng-template #firstSeenRow> | ||||
|   @if (isLoadingTx) { | ||||
|     <ng-container *ngTemplateOutlet="skeletonDetailsRow"></ng-container> | ||||
|   } @else if (transactionTime === -1) { | ||||
|   } @else if (transactionTime > 0) { | ||||
|     <tr> | ||||
|       <td i18n="transaction.first-seen|Transaction first seen">First seen</td> | ||||
|       <td><span class="skeleton-loader"></span></td> | ||||
|       <td><i><app-time kind="since" [time]="transactionTime" [fastRender]="true"></app-time></i></td> | ||||
|     </tr> | ||||
|   } @else { | ||||
|     <tr> | ||||
|       <td i18n="transaction.first-seen|Transaction first seen">First seen</td> | ||||
|       <td><i><app-time kind="since" [time]="transactionTime" [fastRender]="true"></app-time></i></td> | ||||
|       <td><span class="skeleton-loader"></span></td> | ||||
|     </tr> | ||||
|   } | ||||
| </ng-template> | ||||
|  | ||||
| @ -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); | ||||
|         } | ||||
|       }); | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user