From d561a34055fc0086cd8edf2322f1bd8d52461afc Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Sun, 21 Nov 2021 16:39:51 -0700 Subject: [PATCH] Fix bug in genders.js regarding constants --- database/scores/genders.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/scores/genders.js b/database/scores/genders.js index 126e57b..b59bdb0 100644 --- a/database/scores/genders.js +++ b/database/scores/genders.js @@ -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; } }