Loading zu Btn hinzugefügt
This commit is contained in:
@@ -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();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user