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 voting displayed percent #825

Merged
merged 5 commits into from
Apr 29, 2019
Merged

Conversation

AquiGorka
Copy link
Contributor

@AquiGorka AquiGorka commented Apr 26, 2019

Ref: fixes aragon/client#742

The error came from this line: the check was not breaking because (0.55 * 100 * 100) % 1 = 9.094947017729282e-13 (even though (0.55 * (100 * 100)) % 1 = 0).

Applied the function that is being used in the survey app and added local tests for voting.
As discussed with @bpierre we need to add a shared/common library for all the apps.

@AquiGorka AquiGorka requested review from bpierre and sohkai April 26, 2019 09:27
@AquiGorka AquiGorka force-pushed the fix/voting-displayed-percent branch from 1324ec8 to 1e53dda Compare April 26, 2019 10:36
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

🎉

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.015% when pulling 1e53dda on fix/voting-displayed-percent into 01d80a0 on master.

@AquiGorka AquiGorka merged commit 8edc217 into master Apr 29, 2019
@AquiGorka AquiGorka deleted the fix/voting-displayed-percent branch April 29, 2019 07:54
@luisivan luisivan mentioned this pull request Apr 29, 2019
25 tasks
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
* VotingCard: update informative to question

* Math utils: refactor scale values set to use bn

* Add jest and babel-jest deps for tests

* babelrc: add env tests presets

* Add math utils tests
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.

Voting percent displayed inconsistent
3 participants