From 2fa5d3cc6d5168e11da9e598c7f27cbfc5904e84 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 31 Oct 2021 12:50:54 +0100 Subject: [PATCH] Governance Bug Fixed with Reputation Calculation 2 --- .../Governance/UI/Spaces/User-Profile-Space/UserProfile.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js index 4f66b2f82..ea5eb5686 100644 --- a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js +++ b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js @@ -150,9 +150,7 @@ 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 - if (transfer.to.toLowerCase() === '0x9F25cc5f3e70b907269CebbB45D812313b3e9143'.toLowerCase()) { - console.log('COZED') - } + let previousReputation = reputationByAddress.get(transfer.to.toLowerCase()) if (previousReputation === undefined) {previousReputation = 0} let newReputation = previousReputation + currentReputation