Fix bug in genders.js regarding constants
This commit is contained in:
		
							parent
							
								
									bdd943d422
								
							
						
					
					
						commit
						d561a34055
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue