mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-11 21:56:11 -05:00
Fix "LIVE" showing when tournament match is still locked Closes #1726
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user