fix(cat): age map
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m55s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m55s
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user