Fix "LIVE" showing when tournament match is still locked Closes #1726

This commit is contained in:
Kalle
2024-05-09 13:16:03 +03:00
parent 24fabebb48
commit ee3421efd2

View File

@@ -85,7 +85,14 @@ function MatchHeader({ match, type, roundNumber, group }: MatchProps) {
{prefix()}
{roundNumber}.{match.number}
</div>
{hasStreams() ? (
{toBeCasted ? (
<Popover
buttonChildren={<>🔒 CAST</>}
triggerClassName="bracket__match__header__box bracket__match__header__box__button"
>
Match is scheduled to be casted
</Popover>
) : hasStreams() ? (
<Popover
buttonChildren={<>🔴 LIVE</>}
triggerClassName="bracket__match__header__box bracket__match__header__box__button"
@@ -94,13 +101,6 @@ function MatchHeader({ match, type, roundNumber, group }: MatchProps) {
>
<MatchStreams match={match} />
</Popover>
) : toBeCasted ? (
<Popover
buttonChildren={<> CAST</>}
triggerClassName="bracket__match__header__box bracket__match__header__box__button"
>
Match is scheduled to be casted
</Popover>
) : null}
</div>
);