fix(comb): category calculator
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m56s

This commit is contained in:
2025-03-15 17:44:41 +01:00
parent ee77975c9c
commit 7497cc399c
2 changed files with 20 additions and 20 deletions

View File

@@ -17,25 +17,25 @@ export function getCategoryFormBirthDate(birth_date, currentDate = new Date()) {
const birthYear = birth_date.getFullYear()
const diff = currentSaison - birthYear;
if (diff < 6) {
if (diff < 7) {
return "SUPER_MINI";
} else if (diff < 8) {
} else if (diff < 9) {
return "MINI_POUSSIN";
} else if (diff < 10) {
} else if (diff < 11) {
return "POUSSIN";
} else if (diff < 12) {
} else if (diff < 13) {
return "BENJAMIN";
} else if (diff < 14) {
} else if (diff < 15) {
return "MINIME";
} else if (diff < 16) {
} else if (diff < 17) {
return "CADET";
} else if (diff < 18) {
} else if (diff < 19) {
return "JUNIOR";
} else if (diff < 24) {
} else if (diff < 25) {
return "SENIOR1";
} else if (diff < 34) {
} else if (diff < 35) {
return "SENIOR2";
} else if (diff < 44) {
} else if (diff < 45) {
return "VETERAN1";
} else {
return "VETERAN2";