From a0e2544cb5d730bc2b8c3a11ffaa7048ac5997ea Mon Sep 17 00:00:00 2001 From: Maxim Date: Tue, 16 Apr 2024 12:24:58 +0200 Subject: [PATCH] Fix for scoreboard --- .../overlay/src/components/molecules/info/ContestantInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/overlay/src/components/molecules/info/ContestantInfo.tsx b/src/frontend/overlay/src/components/molecules/info/ContestantInfo.tsx index 28c3edd48..69d62785a 100644 --- a/src/frontend/overlay/src/components/molecules/info/ContestantInfo.tsx +++ b/src/frontend/overlay/src/components/molecules/info/ContestantInfo.tsx @@ -50,7 +50,7 @@ export const ContestantInfo = ({ teamId, roundBR= true, className = null }) => { const contestInfo = useAppSelector((state) => state.contestInfo.info); const scoreboardData = useAppSelector((state) => state.scoreboard[SCOREBOARD_TYPES.normal].ids[teamId]); const awards = useAppSelector((state) => state.scoreboard[SCOREBOARD_TYPES.normal].idAwards[teamId]); - const medal = awards.find((award) => award.type == Award.Type.medal) as Award.medal; + const medal = awards?.find((award) => award.type == Award.Type.medal) as Award.medal; const teamData = useAppSelector((state) => state.contestInfo.info?.teamsId[teamId]); const formatPenalty = useFormatPenalty(); return