Fix bug in genders.js regarding constants

main
sudoer777 2021-11-21 16:39:51 -07:00
parent bdd943d422
commit d561a34055
1 changed files with 4 additions and 4 deletions

View File

@ -26,16 +26,16 @@ async function retrieveBySport(sportID) {
return gendersList;
}
if(table.length == 2) {
gendersList.push(genders.FEMALE);
gendersList.push(genders.MALE);
gendersList.push(FEMALE);
gendersList.push(MALE);
return gendersList;
}
else if(table[0][0] = "F") {
gendersList.push(genders.FEMALE);
gendersList.push(FEMALE);
return gendersList;
}
else if(table[0][0] = "M") {
gendersList.push(genders.MALE);
gendersList.push(MALE);
return gendersList;
}
}