display 0 on no validators rather than crash (#488)

This commit is contained in:
Jędrzej Stuczyński
2020-12-10 15:31:22 +00:00
committed by GitHub
parent 46d3591a4f
commit 6b37a9b95c
+1 -1
View File
@@ -58,7 +58,7 @@ async function dealWithInitialTopology() {
// lets ignore removed gateways for time being (at least until network monitor actually sends packets to them)
createMixnodeCount(`${activeTopology.mixNodes.length} + ${standbyMixes.length} standby`)
createValidatorCount(fullTopology.validators.validators.length);
createValidatorCount(fullTopology.validators.validators.length || 0);
createBlockHeight(fullTopology.validators.block_height);
createDisplayTable(activeTopology, standbyMixes, standbyGateways, removedTopology.mixNodes)