Don't show match as link if 0-0 Closes #707

This commit is contained in:
Kalle
2022-04-16 21:09:55 +03:00
parent 9d9f60eeb1
commit fc2a6323fa

View File

@@ -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"