From c7c4895eab292f03c8c23e197403e47323faf8f8 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 10 Apr 2021 20:59:27 +0400 Subject: [PATCH] fixes #438 --- .../src/app/components/transaction/transaction.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index ef765b49f..5ffe37487 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -118,8 +118,8 @@ export class TransactionComponent implements OnInit, OnDestroy { totalFees += cpfpInfo.bestDescendant.fee; } - const effectiveFeePerVsize = +(totalFees / (totalWeight / 4)).toFixed(1); - this.tx.effectiveFeePerVsize = effectiveFeePerVsize; + const effectiveFeePerVsize = totalFees / (totalWeight / 4); + this.tx.effectiveFeePerVsize = +effectiveFeePerVsize.toFixed(1); this.stateService.markBlock$.next({ txFeePerVSize: effectiveFeePerVsize }); this.cpfpInfo = cpfpInfo; });