Skip to content

Commit

Permalink
Merge pull request #53 from arthurlockman/beta
Browse files Browse the repository at this point in the history
Patching a crasher on Emcee page
  • Loading branch information
jameslockman authored Mar 10, 2023
2 parents 9d3f3f7 + fee50ea commit 028a0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EmceePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ function EmceePage({ selectedEvent, playoffSchedule, qualSchedule, alliances, cu
}

if (winnerOpponent.lookup >= 0) {
opponent.winner = alliances.Lookup[`${winnerMatch?.teams[winnerOpponent.lookup].teamNumber}`]?.alliance;
opponent.winner = alliances?.Lookup[`${winnerMatch?.teams[winnerOpponent.lookup].teamNumber}`]?.alliance;
}
if (loserOpponent.lookup >= 0) {
opponent.loser = alliances.Lookup[`${loserMatch?.teams[loserOpponent.lookup].teamNumber}`]?.alliance;
opponent.loser = alliances?.Lookup[`${loserMatch?.teams[loserOpponent.lookup].teamNumber}`]?.alliance;
}
}
}
Expand Down

0 comments on commit 028a0eb

Please sign in to comment.