Skip to content

Commit

Permalink
Merge pull request #170 from the-orange-alliance/hide-ranks-post-match
Browse files Browse the repository at this point in the history
Hide ranks after match
  • Loading branch information
kyle-flynn authored Sep 26, 2024
2 parents 3333f18 + 1b8e11d commit 97e158f
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 97e158f

Please sign in to comment.