display 0 on no validators rather than crash (#488)
This commit is contained in:
committed by
GitHub
parent
46d3591a4f
commit
6b37a9b95c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user