From 0bec8c51a4002e9f717c9c8bc12a50b05e3b102d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 11 Nov 2021 09:30:24 +0100 Subject: [PATCH] Bug Fixed at Governance start up --- .../Governance/UI/Spaces/User-Profile-Space/UserProfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js index f255a7610..943ab4a2c 100644 --- a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js +++ b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js @@ -50,6 +50,7 @@ function newGovernanceUserProfileSpace() { for (let i = 0; i < rootNodes.length; i++) { let rootNode = rootNodes[i] + if (rootNode.payload === undefined) { continue } if (rootNode.payload.floatingObject.isCollapsed !== true) { rootNode.payload.floatingObject.collapseToggle() } @@ -150,9 +151,9 @@ function newGovernanceUserProfileSpace() { if (transfer.from !== UI.projects.governance.globals.saToken.SA_TOKEN_BSC_TREASURY_ACCOUNT_ADDRESS) { continue } let currentReputation = Number(transfer.value) / UI.projects.governance.globals.saToken.SA_TOKEN_BSC_DECIMAL_FACTOR - + let previousReputation = reputationByAddress.get(transfer.to.toLowerCase()) - if (previousReputation === undefined) {previousReputation = 0} + if (previousReputation === undefined) { previousReputation = 0 } let newReputation = previousReputation + currentReputation reputationByAddress.set(transfer.to.toLowerCase(), newReputation) }