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(); }}