correct hashrate suffix

This commit is contained in:
Ben Wilson
2023-07-10 21:11:25 -04:00
parent 217eb83985
commit a6623a539e
8 changed files with 53 additions and 7 deletions
@@ -2,6 +2,7 @@ import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { map, Observable, shareReplay } from 'rxjs';
import { HashSuffixPipe } from '../../pipes/hash-suffix.pipe';
import { ClientService } from '../../services/client.service';
@Component({
@@ -18,6 +19,8 @@ export class DashboardComponent {
public chartOptions: any;
constructor(private clientService: ClientService, private route: ActivatedRoute) {
this.address = this.route.snapshot.params['address'];
this.clientInfo$ = this.clientService.getClientInfo(this.address).pipe(
@@ -108,7 +111,7 @@ export class DashboardComponent {
y: {
ticks: {
color: textColorSecondary,
callback: (value: number) => value + ' GH/s',
callback: (value: number) => HashSuffixPipe.transform(value)
},
grid: {
color: surfaceBorder,