Fix NaN boost

This commit is contained in:
Mononaut 2024-04-08 11:21:45 +00:00
parent dc6dba416a
commit 11eaa0ca50
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
</ng-container>
<ng-container *ngIf="!pending">
<td *ngIf="acceleration.boost != null" class="fee text-right">
{{ (acceleration.boost) | number }} <span class="symbol" i18n="shared.sat|sat">sat</span>
{{ acceleration.boost | number }} <span class="symbol" i18n="shared.sat|sat">sat</span>
</td>
<td *ngIf="acceleration.boost == null" class="fee text-right">
~

View File

@ -58,7 +58,7 @@ export class AccelerationsListComponent implements OnInit {
}
}
for (const acc of accelerations) {
acc.boost = acc.boostCost || (acc.feePaid - acc.baseFee - acc.vsizeFee);
acc.boost = acc.boostCost != null ? acc.boostCost : (acc.feePaid - acc.baseFee - acc.vsizeFee);
}
if (this.widget) {
return of(accelerations.slice(0, 6));