diff --git a/functions/src/api/FrcEventsApiClient.ts b/functions/src/api/FrcEventsApiClient.ts index df676f9..99a261d 100644 --- a/functions/src/api/FrcEventsApiClient.ts +++ b/functions/src/api/FrcEventsApiClient.ts @@ -145,13 +145,15 @@ export default class FrcEventsApiClient extends GenericApiClient { if (matchResults.length) { bracket[bm.number] = await Promise.all(matchResults.map(async (mr) => ({ - participants: mr.teams.filter((team) => !!team.teamNumber) + participants: mr.teams.filter((team) => !!team.teamNumber && team.teamNumber > 3) .reduce((prev, team) => ({ ...prev, [team.station]: team.teamNumber, }), {} as Record), winner: await getWinnerFromMatch(mr, bm.number), }))); + + if (bracket[bm.number]!) } })); return bracket;