Skip to content

Commit

Permalink
Fixed switch case when checking vote
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Sep 2, 2024
1 parent 8e764fe commit 7ecb6af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types/election/published.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ export class PublishedElection extends Election {
return ApprovalElection.checkVote(vote, this.voteType);
case ElectionResultsTypeNames.BUDGET:
return BudgetElection.checkVote(vote, this.resultsType, this.voteType);
case ElectionResultsTypeNames.SINGLE_CHOICE_MULTIQUESTION:
return BudgetElection.checkVote(vote, this.resultsType, this.voteType);
case ElectionResultsTypeNames.QUADRATIC:
return QuadraticElection.checkVote(vote, this.resultsType, this.voteType);
case ElectionResultsTypeNames.SINGLE_CHOICE_MULTIQUESTION:
default:
return PublishedElection.checkVote(vote, this.voteType);
}
Expand Down

0 comments on commit 7ecb6af

Please sign in to comment.