fix(cat): age map
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m55s

This commit is contained in:
2025-03-17 11:12:38 +01:00
parent 7497cc399c
commit e18ed652f0
3 changed files with 21 additions and 20 deletions

View File

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