From 907cf3050240e0e0728a78def2e8adcfa413ffc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eik=20Hvattum=20R=C3=B8geberg?= Date: Thu, 26 Sep 2024 10:10:04 +0200 Subject: [PATCH] Hide registration countdown button when already registered --- app/routes/events/components/JoinEventForm.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/routes/events/components/JoinEventForm.tsx b/app/routes/events/components/JoinEventForm.tsx index b7a7bf1dfb..eed770ef26 100644 --- a/app/routes/events/components/JoinEventForm.tsx +++ b/app/routes/events/components/JoinEventForm.tsx @@ -413,11 +413,13 @@ const JoinEventForm = ({ title, event, registration }: Props) => { /> )} - {event.activationTime && registrationOpensIn && ( - - )} + {event.activationTime && + registrationOpensIn && + !registration && ( + + )} {buttonOpen && !submitting && !registrationPending && ( <>