From 11eaa0ca50354b22fa31a7e786db6acc21d3de12 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 8 Apr 2024 11:21:45 +0000 Subject: [PATCH] Fix NaN boost --- .../accelerations-list/accelerations-list.component.html | 2 +- .../accelerations-list/accelerations-list.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html index 42b5faaa0..668f345f0 100644 --- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html +++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html @@ -40,7 +40,7 @@ - {{ (acceleration.boost) | number }} sat + {{ acceleration.boost | number }} sat ~ diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts index 56a4a3d59..5acd77d5d 100644 --- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts +++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts @@ -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));