From c772722402633f3275c922ea2ea0c6638de54bc6 Mon Sep 17 00:00:00 2001 From: Niranjan Ramadas Date: Fri, 23 Sep 2022 14:31:40 -0400 Subject: [PATCH] Fix the hub proposal vote breakdown (#1060) --- hub/components/Home/Feed/FeedItem/Proposal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hub/components/Home/Feed/FeedItem/Proposal/index.tsx b/hub/components/Home/Feed/FeedItem/Proposal/index.tsx index 35c94faf70..5ef9b3c770 100644 --- a/hub/components/Home/Feed/FeedItem/Proposal/index.tsx +++ b/hub/components/Home/Feed/FeedItem/Proposal/index.tsx @@ -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;