From 7ecb6afd5834c147bb5a8818c295767450a6ebbc Mon Sep 17 00:00:00 2001 From: Marc Velmer Date: Mon, 2 Sep 2024 19:46:24 +0200 Subject: [PATCH] Fixed switch case when checking vote --- src/types/election/published.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types/election/published.ts b/src/types/election/published.ts index 9c5235d5..33be8460 100644 --- a/src/types/election/published.ts +++ b/src/types/election/published.ts @@ -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); }