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

the totalVotes forced to update #20

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

shaunramsey
Copy link
Contributor

the underlying totalVotes weren't updating when polloptions changed causing a problem when dividing and failing at the percentage. This fixes it.

For example: polloptions filled from firebase stream. stream adds 100 votes, polloptions DO update, "totalVotes" doesn't.

the underlying totalVotes weren't updating when polloptions changed causing a problem when dividing and failing at the percentage.
This fixes it.

For example: polloptions filled from firebase stream. stream adds 100 votes, polloptions DO update, "totalVotes" doesn't.
@SumanRasaili
Copy link

the underlying totalVotes weren't updating when polloptions changed causing a problem when dividing and failing at the percentage. This fixes it.

For example: polloptions filled from firebase stream. stream adds 100 votes, polloptions DO update, "totalVotes" doesn't.

Does this fixed ?

Copy link
Owner

@thenifemi thenifemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@thenifemi thenifemi merged commit 6f6711a into thenifemi:main Aug 9, 2023
@fpolacov
Copy link

This fix didn't work for me

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.

None yet

4 participants