Fix som Bugs #33

This commit is contained in:
nocnico
2025-06-05 23:36:11 +02:00
parent ea21c8d141
commit 91d811e289
7 changed files with 27 additions and 20 deletions

View File

@@ -96,6 +96,7 @@ const ModalBtn = ({
eventCompleted(event, participant) && "btn-success",
)}
onClick={openModal}
disabled={eventCompleted(event, participant)}
>
{participant && !eventCompleted(event, participant) && (
<>
@@ -234,6 +235,7 @@ const ModalBtn = ({
router.refresh();
closeModal();
}}
disabled={!selectAppointmentForm.watch("eventAppointmentId")}
>
<EnterIcon /> Anmelden
</button>