Update Weights.js

This commit is contained in:
Luis Fernando Molina committed 2021-06-30 16:24:03 +02:00
1 parent e611453c21
commit 4f1dd4be36
1 file changed
+4 -1
@@ -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
}
}