diff --git a/Projects/Governance/UI/Function-Libraries/MentorshipProgram.js b/Projects/Governance/UI/Function-Libraries/MentorshipProgram.js index 9e91db2d7..85cc6f4b6 100644 --- a/Projects/Governance/UI/Function-Libraries/MentorshipProgram.js +++ b/Projects/Governance/UI/Function-Libraries/MentorshipProgram.js @@ -16,7 +16,8 @@ function newGovernanceFunctionLibraryMentorshipProgram() { "Mentorship-Program", "Mentorship Program", "Mentorship Power", - "userMentors" + "userMentors", + "User Mentor" ) } } \ No newline at end of file diff --git a/Projects/Governance/UI/Utilities/MandatoryProgram.js b/Projects/Governance/UI/Utilities/MandatoryProgram.js index efbeb448c..0ca935486 100644 --- a/Projects/Governance/UI/Utilities/MandatoryProgram.js +++ b/Projects/Governance/UI/Utilities/MandatoryProgram.js @@ -12,7 +12,8 @@ function newFoundationsUtilitiesMandatoryProgram() { programName, programNodeType, programPowerName, - usersArrayPropertyName + usersArrayPropertyName, + userNodeType ) { /* Here we will store the total amount of tokens that is going to be distributed among all participants @@ -113,7 +114,7 @@ function newFoundationsUtilitiesMandatoryProgram() { return } if ( - node.type === 'User Mentor' && + node.type === userNodeType && node.payload.referenceParent !== undefined ) { reserProgram(node.payload.referenceParent) @@ -227,7 +228,7 @@ function newFoundationsUtilitiesMandatoryProgram() { } break } - case 'User Mentor': { + case userNodeType: { node.payload[programPropertyName].outgoingPower = node.payload.parentNode.payload[programPropertyName].outgoingPower / node.payload.parentNode[usersArrayPropertyName].length drawUserMentor(node)