Show avg block heath in pool ranking pie chart

This commit is contained in:
nymkappa committed 2023-02-20 18:14:12 +09:00
1 parent e3e7271c9d
commit 0dc2a598c3
5 files changed
+23 -2

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ class Mining {
rank: rank++,
emptyBlocks: emptyBlocksCount.length > 0 ? emptyBlocksCount[0]['count'] : 0,
slug: poolInfo.slug,
avgMatchRate: Math.round(100 * poolInfo.avgMatchRate) / 100,
avgMatchRate: poolInfo.avgMatchRate !== null ? Math.round(100 * poolInfo.avgMatchRate) / 100 : null,
};
poolsStats.push(poolStat);
});