diff --git a/lib/validators/selectionPileValidator.ts b/lib/validators/selectionPileValidator.ts index 351cea20..18014739 100644 --- a/lib/validators/selectionPileValidator.ts +++ b/lib/validators/selectionPileValidator.ts @@ -16,6 +16,8 @@ class SelectionPileValidator { errors.push(...this.exceededListVotes(selectionPile.optionSelections)) + if (selectionPile.explicitBlank || this.implicitlyBlank(selectionPile.optionSelections)) return errors + if (includeLazyErrors) { errors.push(...this.belowMinListVotes(selectionPile.optionSelections)) } @@ -65,7 +67,7 @@ class SelectionPileValidator { } private belowMinListVotes(choices: OptionSelection[]) { - const options = this.recursiveFlattener(this.contest.options as OptionContent[]); + const options = this.recursiveFlattener(this.contest.options as OptionContent[]); const optionsWithListLimit = options.map((op) => op?.minChooseableSuboptions ? op : null) diff --git a/package.json b/package.json index 395baa84..d744f302 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.1.0", + "version": "4.1.1", "name": "@aion-dk/js-client", "license": "MIT", "description": "Assembly Voting JS client",