Skip to content

politeia: Fix proposal vote eligibility.#3588

Open
JoeGruffins wants to merge 1 commit intodecred:masterfrom
JoeGruffins:debugvoting
Open

politeia: Fix proposal vote eligibility.#3588
JoeGruffins wants to merge 1 commit intodecred:masterfrom
JoeGruffins:debugvoting

Conversation

@JoeGruffins
Copy link
Copy Markdown
Member

WalletProposalVoteDetails was passing only the already-voted ticket hashes to CommittedTickets, so it could never discover wallet tickets that had not yet voted. Fetch the full eligible ticket list from the vote snapshot via TicketVoteDetails and use that instead.

Also restyle the vote modal to use standard form patterns (go/danger buttons, feature submit, consistent layout), hide the vote button after a successful vote, and log vote casts with ticket hashes.

WalletProposalVoteDetails was passing only the already-voted ticket
hashes to CommittedTickets, so it could never discover wallet tickets
that had not yet voted. Fetch the full eligible ticket list from the
vote snapshot via TicketVoteDetails and use that instead.

Also restyle the vote modal to use standard form patterns (go/danger
buttons, feature submit, consistent layout), hide the vote button
after a successful vote, and log vote casts with ticket hashes.
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.

2 participants