Pool chart: show power of ten of hashrate on desktop

This commit is contained in:
ncois committed 2023-12-01 12:57:30 +01:00
1 parent 62c9a88235
commit 0a70273456
1 file changed
+2 -4
@@ -163,10 +163,8 @@ export class PoolComponent implements OnInit {
let hashratePowerOfTen: any = selectPowerOfTen(1);
let hashrate = ticks[0].data[1];
if (this.isMobile()) {
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
}
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
return `
<b style="color: white; margin-left: 18px">${ticks[0].axisValueLabel}</b><br>