Skip to content

Commit

Permalink
Fixed approval election check vote
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Jan 24, 2024
1 parent 4ff03db commit fa67058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/election/published.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PublishedCensus } from '../census';
import { Vote } from '../vote';
import { MultiChoiceElection } from './multichoice';
import { BudgetElection } from './budget';
import { ApprovalElection } from './approval';

export enum ElectionStatus {
PROCESS_UNKNOWN = 'PROCESS_UNKNOWN',
Expand Down Expand Up @@ -114,7 +115,7 @@ export class PublishedElection extends Election {
case ElectionResultsTypeNames.MULTIPLE_CHOICE:
return MultiChoiceElection.checkVote(vote, this.voteType);
case ElectionResultsTypeNames.APPROVAL:
return MultiChoiceElection.checkVote(vote, this.voteType);
return ApprovalElection.checkVote(vote, this.voteType);
case ElectionResultsTypeNames.BUDGET:
return BudgetElection.checkVote(vote, this.resultsType, this.voteType);
case ElectionResultsTypeNames.SINGLE_CHOICE_MULTIQUESTION:
Expand Down

0 comments on commit fa67058

Please sign in to comment.