Skip to content

Commit

Permalink
only vote valid
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas089 committed May 25, 2024
1 parent 43e6d56 commit cb11fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl AppState {
self.state
.elections
.iter_mut()
.filter(|election| election.gov_key == outputs.deserialized_government_public_key())
.filter(|election| election.gov_key == outputs.deserialized_government_public_key() && election.options.contains(&outputs.choice))
.for_each(|election| {
election
.receipts
Expand Down

0 comments on commit cb11fa4

Please sign in to comment.