From 0ad6f69b9cf6879d45ca1f49a5a03b1bade9da33 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 30 Jun 2021 16:25:59 +0200 Subject: [PATCH] Update Weights.js --- Projects/Governance/UI/Function-Libraries/Weights.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Governance/UI/Function-Libraries/Weights.js b/Projects/Governance/UI/Function-Libraries/Weights.js index fcc6fc522..53652c058 100644 --- a/Projects/Governance/UI/Function-Libraries/Weights.js +++ b/Projects/Governance/UI/Function-Libraries/Weights.js @@ -117,7 +117,7 @@ function newGovernanceFunctionLibraryWeights() { node.payload.referenceParent !== undefined ) ) { - if (node.payload.votingProgram.votes !== undefined) { + if (node.payload.votingProgram !== undefined) { if (node.payload.votingProgram.votes !== undefined) { node.payload.weight = node.payload.votingProgram.votes / totalVotes }