minor audit details fixes

This commit is contained in:
Mononaut
2023-06-14 11:28:39 -04:00
parent ae5a0312be
commit 6b93e61b56
3 changed files with 4 additions and 4 deletions

View File

@@ -392,7 +392,7 @@
</ng-template>
<ng-template #expectedDetails>
<table *ngIf="block && blockAudit" class="table table-borderless table-striped audit-details-table">
<table *ngIf="block && blockAudit && blockAudit.expectedFees != null" class="table table-borderless table-striped audit-details-table">
<tbody>
<tr>
<td i18n="block.total-fees|Total fees in a block">Total fees</td>
@@ -413,7 +413,7 @@
</ng-template>
<ng-template #actualDetails>
<table *ngIf="block && blockAudit" class="table table-borderless table-striped audit-details-table">
<table *ngIf="block && blockAudit && blockAudit.expectedFees != null" class="table table-borderless table-striped audit-details-table">
<tbody>
<tr>
<td i18n="block.total-fees|Total fees in a block">Total fees</td>

View File

@@ -69,7 +69,7 @@
</td>
<td *ngIf="auditAvailable" class="fee-delta" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">
<span *ngIf="block.extras.feeDelta" class="difference" [class.positive]="block.extras.feeDelta >= 0" [class.negative]="block.extras.feeDelta < 0">
({{ block.extras.feeDelta > 0 ? '+' : '' }}{{ (block.extras.feeDelta * 100) | amountShortener: 2 }}%)
{{ block.extras.feeDelta > 0 ? '+' : '' }}{{ (block.extras.feeDelta * 100) | amountShortener: 2 }}%
</span>
</td>
<td class="txs text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">