Bug Fixed at Governance start up
This commit is contained in:
1 parent
57c586c28b
commit
0bec8c51a4
1 file changed
+2
-1
@@ -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()
|
||||
}
|
||||
@@ -152,7 +153,7 @@ function newGovernanceUserProfileSpace() {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user