diff --git a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.html b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.html index 6dbb541c3..9a820ce76 100644 --- a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.html +++ b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.html @@ -17,7 +17,7 @@
Reward Per Tx
- {{ rewardStats.rewardPerTx }} + {{ rewardStats.rewardPerTx | amountShortener }} sats/tx
in the last 8 blocks
@@ -25,7 +25,7 @@
Average Fee
- {{ rewardStats.feePerTx }} + {{ rewardStats.feePerTx | amountShortener}} sats/tx
in the last 8 blocks
diff --git a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts index 3931cbc36..606bac5f1 100644 --- a/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts +++ b/frontend/src/app/components/mining-dashboard/mining-dashboard.component.ts @@ -2,8 +2,6 @@ import { ChangeDetectionStrategy, Component, Inject, LOCALE_ID, OnDestroy, OnIni import { map } from 'rxjs/operators'; import { SeoService } from 'src/app/services/seo.service'; import { StateService } from 'src/app/services/state.service'; -import { formatNumber } from '@angular/common'; -import { WebsocketService } from 'src/app/services/websocket.service'; import { Observable } from 'rxjs'; @Component({ @@ -22,7 +20,6 @@ export class MiningDashboardComponent implements OnInit { constructor(private seoService: SeoService, public stateService: StateService, - private websocketService: WebsocketService, @Inject(LOCALE_ID) private locale: string, ) { this.seoService.setTitle($localize`:@@mining.mining-dashboard:Mining Dashboard`); @@ -39,8 +36,8 @@ export class MiningDashboardComponent implements OnInit { return { 'totalReward': totalReward, - 'rewardPerTx': formatNumber(totalReward / totalTx, this.locale, '1.0-0'), - 'feePerTx': formatNumber(totalFee / totalTx, this.locale, '1.0-0'), + 'rewardPerTx': totalReward / totalTx, + 'feePerTx': totalFee / totalTx, } }) );