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

Vote values do not get updated in the vote tab of the wallet page #3656

Closed
reyraa opened this issue Jun 29, 2021 · 0 comments · Fixed by #3659
Closed

Vote values do not get updated in the vote tab of the wallet page #3656

reyraa opened this issue Jun 29, 2021 · 0 comments · Fixed by #3659
Assignees
Milestone

Comments

@reyraa
Copy link
Contributor

reyraa commented Jun 29, 2021

Expected behavior

The votingQueue uses the current and new vote amounts to determine transaction.assets.vote[I].amount. Vote an unvote, this value is negative, and for an upvote, it's positive.
The vote amounts displayed in the vote tab of the wallet page must get updated after I submit votes. So next time that I want to change my vote, transaction.assets.vote[I].amount is calculated correctly.

Actual behavior

The vote values don't get updated after I submit my votes. Therefore my next vote to the same delegate is submitted with a wrong value.

Steps to reproduce

  • Choose an existing vote. Change your vote and submit.
  • Navigate back to the votes tab. You'll notice the delegate still has the old vote value.
  • Change your vote for the same delegates. submit your votes and refresh the app/re-login.
  • You'll notice the vote amount is not what you expected.
@reyraa reyraa self-assigned this Jun 29, 2021
@reyraa reyraa added this to the Sprint 52 milestone Jun 29, 2021
reyraa added a commit that referenced this issue Jun 30, 2021
Update wallet/vote tab when votes changed - Closes  #3656
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant