Skip to content
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

fix: display correct percentages for multiple choice polls #1821

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

zaidhaan
Copy link
Contributor

@zaidhaan zaidhaan commented Feb 24, 2023

Percentages currently use votesCount, regardless of whether the poll is a regular poll or a multiple choice one. It should instead read the computed votersCount, which is already used to display the (correct) percentages.

Example poll (link):
image

Before (elk link):
image

After (deploy preview link):
image

Fixes #1780.

@stackblitz
Copy link

stackblitz bot commented Feb 24, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 24, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 9fc351e
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/63f90c18f3e6d800081c0a7f

@netlify
Copy link

netlify bot commented Feb 24, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 9fc351e
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63f90c18d9eb7d0008673f07
😎 Deploy Preview https://deploy-preview-1821--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@patak-dev
Copy link
Member

Thanks! 🙌🏼

@patak-dev patak-dev merged commit 8c78320 into elk-zone:main Feb 24, 2023
@zaidhaan zaidhaan deleted the fix-multiple-choice-percentages branch February 24, 2023 20:45
DataDrivenMD pushed a commit to Distal-Labs/elk that referenced this pull request Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple-choice polls do not display bars correctly
2 participants