diff --git a/packages/shared/src/domain_model/ElectionSettings.ts b/packages/shared/src/domain_model/ElectionSettings.ts index b0423d1b..0e847c89 100644 --- a/packages/shared/src/domain_model/ElectionSettings.ts +++ b/packages/shared/src/domain_model/ElectionSettings.ts @@ -106,10 +106,11 @@ export function electionSettingsValidation(obj:ElectionSettings): string | null if (obj.term_type && !TermTypes.includes(obj.term_type)){ return "Invalid Term Type"; } - if (obj.max_rankings && (typeof obj.max_rankings !== 'number' || obj.max_rankings < 0)){ - return "Invalid Max Rankings"; - } + // NOTE: temporarily disabling because this broke the ability to set the max rankings from the frontend + //if (obj.max_rankings && (typeof obj.max_rankings !== 'number' || obj.max_rankings < 0)){ + // return "Invalid Max Rankings"; + //} return null; } - \ No newline at end of file +