diff --git a/Projects/Governance/UI/Function-Libraries/Weights.js b/Projects/Governance/UI/Function-Libraries/Weights.js index 9d04c8662..fcc6fc522 100644 --- a/Projects/Governance/UI/Function-Libraries/Weights.js +++ b/Projects/Governance/UI/Function-Libraries/Weights.js @@ -60,7 +60,10 @@ function newGovernanceFunctionLibraryWeights() { node.payload.referenceParent !== undefined ) ) { - if (node.payload.votingProgram.votes !== undefined) { + if ( + node.payload.votingProgram !== undefined && + node.payload.votingProgram.votes !== undefined + ) { totalVotes = totalVotes + node.payload.votingProgram.votes } }