From a93e95eb95a6115b27cca269b812da79fdd8e555 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Thu, 26 Jun 2025 13:44:43 -0700 Subject: [PATCH] =?UTF-8?q?Loading=20zu=20Btn=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(app)/admin/event/_components/ParticipantModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hub/app/(app)/admin/event/_components/ParticipantModal.tsx b/apps/hub/app/(app)/admin/event/_components/ParticipantModal.tsx index d197f5b0..f242869e 100644 --- a/apps/hub/app/(app)/admin/event/_components/ParticipantModal.tsx +++ b/apps/hub/app/(app)/admin/event/_components/ParticipantModal.tsx @@ -134,8 +134,8 @@ export const ParticipantModal = ({ participantForm, ref }: ParticipantModalProps type="button" className="btn btn-error btn-outline" onSubmit={() => false} - onClick={() => { - deleteParticipant(participantForm.watch("id")); + onClick={async () => { + await deleteParticipant(participantForm.watch("id")); participantForm.reset(); ref.current?.close(); }}