Skip to content

Commit

Permalink
hide ranks after match
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Sep 26, 2024
1 parent e82b4d5 commit 1b8e11d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front-end/src/apps/audience-display/displays/ad-default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
matchState > MatchState.MATCH_IN_PROGRESS &&
matchState < MatchState.RESULTS_POSTED;

const showRanks = matchState < MatchState.MATCH_IN_PROGRESS;

const showPreviewFull =
layout[0] === LayoutMode.FULL || layout[1] === LayoutMode.FULL;

Expand All @@ -124,7 +126,7 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
<displays.matchPreview
event={event}
match={match}
ranks={ranks}
ranks={showRanks ? ranks : []}
teams={teams}
/>
</FadeInOut>
Expand Down

0 comments on commit 1b8e11d

Please sign in to comment.