mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-13 14:46:10 -05:00
Don't show match as link if 0-0 Closes #707
This commit is contained in:
@@ -30,8 +30,9 @@ export function EliminationBracketMatch({
|
||||
const Container = ({ children }: { children: React.ReactNode }) => {
|
||||
const hasBothParticipants =
|
||||
(match.participants?.filter(Boolean).length ?? 0) > 1;
|
||||
const atLeastOneStageReported = match.score?.some((s) => s > 0);
|
||||
|
||||
if (hasBothParticipants)
|
||||
if (hasBothParticipants && atLeastOneStageReported)
|
||||
return (
|
||||
<Link
|
||||
className="tournament-bracket__match__link"
|
||||
|
||||
Reference in New Issue
Block a user