From e1b5f7839572815197f7d2de51871bc5272342e8 Mon Sep 17 00:00:00 2001 From: harryob <55142896+harryob@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:51:46 +0100 Subject: [PATCH] fix ticket in round pages --- src/components/ticketmodal.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/ticketmodal.tsx b/src/components/ticketmodal.tsx index 9367f0e..d1e37af 100644 --- a/src/components/ticketmodal.tsx +++ b/src/components/ticketmodal.tsx @@ -111,15 +111,17 @@ const TicketDetail = (props: { const { tickets, ticket, round } = props; const relevantTickets = tickets.filter( - (tick) => tick.ticketId == ticket && round && tick.roundId == round + (tick) => tick.ticketId == ticket && (round ? tick.roundId == round : true) ); return (