Fix NaN boost

This commit is contained in:
Mononaut committed 2024-04-08 11:22:57 +00:00
1 parent dc6dba416a
commit 11eaa0ca50
2 files changed
+2 -2

No files matched your search

@@ -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">
~
@@ -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));