Skip to content

Commit

Permalink
Update ElectionSettings.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter authored Oct 8, 2024
1 parent ab374ae commit 89061cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/shared/src/domain_model/ElectionSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}



0 comments on commit 89061cf

Please sign in to comment.