Update Weights.js
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user