diff --git a/lib/validators/selectionPileValidator.ts b/lib/validators/selectionPileValidator.ts index 4fb1bf99..811a6ebc 100644 --- a/lib/validators/selectionPileValidator.ts +++ b/lib/validators/selectionPileValidator.ts @@ -52,12 +52,7 @@ class SelectionPileValidator { return choices.length < this.contest.markingType.minMarks; } private tooManySelections(choices: OptionSelection[]) { - if (this.contest.markingType.votesAllowedPerOption) { - return ( - choices.length > this.contest.markingType.maxMarks && - choices.length > this.contest.markingType.votesAllowedPerOption - ); - } + return choices.length > this.contest.markingType.maxMarks; } private exclusiveNotAlone(choices: OptionSelection[]) { if (this.selectedReferences(choices).length < 2) return false; diff --git a/package.json b/package.json index cab94026..45bf88f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aion-dk/js-client", - "version": "3.1.11", + "version": "3.1.12", "license": "MIT", "description": "Assembly Voting JS client", "main": "dist/lib/av_client.js",