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