Hide pool share on mobile in pool ranking

This commit is contained in:
nymkappa
2023-02-20 18:13:56 +09:00
parent 0dc2a598c3
commit 14be0fc547
2 changed files with 3 additions and 7 deletions

View File

@@ -98,7 +98,6 @@ export class PoolRankingComponent implements OnInit {
)
.pipe(
map(data => {
data.pools = data.pools.map((pool: SinglePoolStats) => this.formatPoolUI(pool));
data['minersLuck'] = (100 * (data.blockCount / 1008)).toFixed(2); // luck 1w
return data;
}),
@@ -110,11 +109,6 @@ export class PoolRankingComponent implements OnInit {
);
}
formatPoolUI(pool: SinglePoolStats) {
pool['blockText'] = pool.blockCount.toString() + ` (${pool.share}%)`;
return pool;
}
generatePoolsChartSerieData(miningStats) {
let poolShareThreshold = 0.5;
if (isMobile()) {