-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove bars ui if vote is 0 #258
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/dux-core-unit/governance-portal-v2/CWmx6fBcaEB5Dqt3W4h9wGQZP8cZ |
@@ -190,15 +190,22 @@ export default function PollOverviewCard({ | |||
|
|||
{poll.voteType === POLL_VOTE_TYPE.PLURALITY_VOTE && ( | |||
<Box sx={{ width: bpi > 0 ? '265px' : '100%', p: bpi > 0 ? 0 : 2 }}> | |||
{tally && <PollVotePluralityResultsCompact tally={tally} showTitles={false} />} | |||
{tally && tally.totalMkrParticipation > 0 && ( | |||
<PollVotePluralityResultsCompact tally={tally} showTitles={false} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hide tally if totalMkrParticipation
<PollWinningOptionBox tally={tally} poll={poll} /> | ||
|
||
{tally && tally.totalMkrParticipation > 0 && ( | ||
<Box> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "leading option from card if mkr is 0"
Codecov Report
@@ Coverage Diff @@
## master #258 +/- ##
==========================================
- Coverage 34.83% 34.77% -0.07%
==========================================
Files 62 62
Lines 1639 1642 +3
Branches 525 528 +3
==========================================
Hits 571 571
- Misses 1061 1064 +3
Partials 7 7
Continue to review full report at Codecov.
|
No description provided.