Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Sep 25, 2024
1 parent 9006e5d commit c6b0186
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions front-end/src/apps/audience-display/displays/ad-default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
);
}
}
const afterMatch = matchState > MatchState.MATCH_IN_PROGRESS;
const afterMatchBeforeScore =
matchState > MatchState.MATCH_IN_PROGRESS &&
matchState < MatchState.RESULTS_POSTED;

const showPreviewFull =
layout[0] === LayoutMode.FULL || layout[1] === LayoutMode.FULL;
Expand All @@ -116,7 +118,7 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
{showPreviewFull && (
<AbsolouteLocator top={0} left={0}>
<FadeInOut
in={id === Displays.MATCH_PREVIEW || afterMatch}
in={id === Displays.MATCH_PREVIEW || afterMatchBeforeScore}
duration={0.5}
>
<displays.matchPreview
Expand Down Expand Up @@ -149,7 +151,7 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
{layout[1] === LayoutMode.FULL && (
<AbsolouteLocator top={0} left={0}>
<FadeInOut
in={id === Displays.MATCH_START && !afterMatch}
in={id === Displays.MATCH_START && !afterMatchBeforeScore}
duration={0.5}
>
<displays.matchPlay
Expand All @@ -164,7 +166,7 @@ export const AudDisplayDefault: FC<DisplayModeProps> = ({ id }) => {
{layout[1] === LayoutMode.STREAM && (
<AbsolouteLocator bottom={0} left={0}>
<SlideInBottom
in={id === Displays.MATCH_START && !afterMatch}
in={id === Displays.MATCH_START && !afterMatchBeforeScore}
duration={1.25}
inDelay={0.75}
>
Expand Down

0 comments on commit c6b0186

Please sign in to comment.