Deep Scan Bug Fixes
This commit is contained in:
1 parent
b83801cd1d
commit
babc2e0a42
1 file changed
+2
-2
@@ -191,7 +191,7 @@ function newGovernanceFunctionLibraryTokenPower() {
|
||||
|
||||
let percentage = getPercentage(childNode)
|
||||
|
||||
if (percentage !== undefined && isNaN(percentage > 0) && percentage !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
@@ -208,7 +208,7 @@ function newGovernanceFunctionLibraryTokenPower() {
|
||||
if (OPAQUE_NODES_TYPES.includes(childNode.type)) { continue }
|
||||
|
||||
let percentage = getPercentage(childNode)
|
||||
if (percentage !== undefined && isNaN(percentage > 0) && percentage !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
Reference in new issue
Block a user