From ee3421efd230e41bbb646097425da2431ace7525 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 9 May 2024 13:16:03 +0300 Subject: [PATCH] Fix "LIVE" showing when tournament match is still locked Closes #1726 --- .../components/Bracket/Match.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/features/tournament-bracket/components/Bracket/Match.tsx b/app/features/tournament-bracket/components/Bracket/Match.tsx index 116f0add7..95e87e304 100644 --- a/app/features/tournament-bracket/components/Bracket/Match.tsx +++ b/app/features/tournament-bracket/components/Bracket/Match.tsx @@ -85,7 +85,14 @@ function MatchHeader({ match, type, roundNumber, group }: MatchProps) { {prefix()} {roundNumber}.{match.number} - {hasStreams() ? ( + {toBeCasted ? ( + 🔒 CAST} + triggerClassName="bracket__match__header__box bracket__match__header__box__button" + > + Match is scheduled to be casted + + ) : hasStreams() ? ( 🔴 LIVE} triggerClassName="bracket__match__header__box bracket__match__header__box__button" @@ -94,13 +101,6 @@ function MatchHeader({ match, type, roundNumber, group }: MatchProps) { > - ) : toBeCasted ? ( - ⚪ CAST} - triggerClassName="bracket__match__header__box bracket__match__header__box__button" - > - Match is scheduled to be casted - ) : null} );