Fix NaN boost
This commit is contained in:
parent
dc6dba416a
commit
11eaa0ca50
@ -40,7 +40,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="!pending">
|
<ng-container *ngIf="!pending">
|
||||||
<td *ngIf="acceleration.boost != null" class="fee text-right">
|
<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>
|
||||||
<td *ngIf="acceleration.boost == null" class="fee text-right">
|
<td *ngIf="acceleration.boost == null" class="fee text-right">
|
||||||
~
|
~
|
||||||
|
@ -58,7 +58,7 @@ export class AccelerationsListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const acc of accelerations) {
|
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) {
|
if (this.widget) {
|
||||||
return of(accelerations.slice(0, 6));
|
return of(accelerations.slice(0, 6));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user