Skip to content

Commit

Permalink
Correct to Male Winner and Female Winner respectively
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed May 10, 2024
1 parent 3c68675 commit 15c1404
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ $ const { alias } = input;
$ const awards = getAsArray(node, "children.edges").map(({ node }) => node);
$ const awardsAppropriatelyOrdered = awards.reduce((array, award) => {
const innerArray = array;
if (award.name.match("Male Sport Winner")) {
if (award.name.match("Male Winner")) {
innerArray[0] = award;
} else if (award.name.match("Female Sport Winner")) {
} else if (award.name.match("Female Winner")) {
innerArray[1] = award;
} else if (award.name.match("Male Sport Finalists")) {
innerArray[2] = award;
Expand Down

0 comments on commit 15c1404

Please sign in to comment.