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>
|
<ng-template #firstSeenRow>
|
||||||
@if (isLoadingTx) {
|
@if (isLoadingTx) {
|
||||||
<ng-container *ngTemplateOutlet="skeletonDetailsRow"></ng-container>
|
<ng-container *ngTemplateOutlet="skeletonDetailsRow"></ng-container>
|
||||||
} @else if (transactionTime === -1) {
|
} @else if (transactionTime > 0) {
|
||||||
<tr>
|
<tr>
|
||||||
<td i18n="transaction.first-seen|Transaction first seen">First seen</td>
|
<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>
|
</tr>
|
||||||
} @else {
|
} @else {
|
||||||
<tr>
|
<tr>
|
||||||
<td i18n="transaction.first-seen|Transaction first seen">First seen</td>
|
<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>
|
</tr>
|
||||||
}
|
}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -656,8 +656,12 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
this.apiService
|
this.apiService
|
||||||
.getTransactionTimes$([this.tx.txid])
|
.getTransactionTimes$([this.tx.txid])
|
||||||
.subscribe((transactionTimes) => {
|
.subscribe((transactionTimes) => {
|
||||||
if (transactionTimes?.length) {
|
if (transactionTimes?.length && transactionTimes[0]) {
|
||||||
this.transactionTime = transactionTimes[0];
|
this.transactionTime = transactionTimes[0];
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.getTransactionTime();
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user