From 50acdf9e2f68ca6b189c605abdae430cfad38e2d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 30 Oct 2021 12:31:21 +0200 Subject: [PATCH] Bug Fixed Governance --- Projects/Governance/UI/Function-Libraries/VotingProgram.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/Governance/UI/Function-Libraries/VotingProgram.js b/Projects/Governance/UI/Function-Libraries/VotingProgram.js index 7b16c53af..b71e2694e 100644 --- a/Projects/Governance/UI/Function-Libraries/VotingProgram.js +++ b/Projects/Governance/UI/Function-Libraries/VotingProgram.js @@ -281,6 +281,8 @@ function newGovernanceFunctionLibraryVotingProgram() { Here we will validate that users can not vote for their own claims. */ let votedUserProfile = UI.projects.visualScripting.utilities.hierarchy.getHiriarchyHead(node.payload.referenceParent) + + if (votedUserProfile === undefined || userProfile === undefined) { return } if (votedUserProfile.id === userProfile.id) { node.payload.uiObject.setErrorMessage('Voting your own claims is not allowed.') return