Skip to content

Commit

Permalink
Fix the hub proposal vote breakdown (solana-labs#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
nramadas authored Sep 23, 2022
1 parent 3a4f37f commit c772722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hub/components/Home/Feed/FeedItem/Proposal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export function Proposal(props: Props) {
const quorumRemainder = quorumReached
? new BigNumber(0)
: voteBreakdown.threshold
? voteBreakdown.threshold.minus(voteBreakdown.totalYesWeight)
? voteBreakdown.threshold
.minus(voteBreakdown.totalYesWeight)
.decimalPlaces(0, BigNumber.ROUND_UP)
: new BigNumber(0);
const myVote = props.proposal.proposal.myVote;

Expand Down

0 comments on commit c772722

Please sign in to comment.