Loading zu Btn hinzugefügt

This commit is contained in:
PxlLoewe
2025-06-26 13:44:43 -07:00
parent abafb298fb
commit a93e95eb95

View File

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