Skip to content

Commit

Permalink
Merge pull request #3983 from JoinColony/fix/3633-motion-progressbar-…
Browse files Browse the repository at this point in the history
…threshold-value

Fix `ProgressBar` threshold in `DefaultMotion`
  • Loading branch information
chinins authored Oct 20, 2022
2 parents 56146ea + a6f60c7 commit 9af4ba9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
width: 116px;
}

.progressBarContainer > div > div {
top: -21.5px;
}

.voteResultsWrapper {
margin: 14px 0;
padding: 17px 23px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,16 @@ const DefaultMotion = ({
const skillRepValue = bigNumberify(
votingStateData?.votingState?.skillRep || 0,
).div(bigNumberify(10).pow(18));

const currentReputationPercent = !totalVotedReputationValue.isZero()
? Math.round(
totalVotedReputationValue.div(skillRepValue).mul(100).toNumber(),
)
: 0;
const thresholdPercent = !skillRepValue.isZero()
? Math.round(threshold.div(skillRepValue).mul(100).toNumber())
? Math.round(threshold.mul(100).div(skillRepValue).toNumber())
: 0;

const domainMetadata = {
name: domainName,
color: domainColor,
Expand Down

0 comments on commit 9af4ba9

Please sign in to comment.