mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: Ne pas dissocier de responsable s'il n'y en a pas d'autre rattaché
à l'élève
This commit is contained in:
@ -21,7 +21,6 @@ const InscriptionForm = ({
|
||||
tuitionFees,
|
||||
profiles,
|
||||
onSubmit,
|
||||
currentStep,
|
||||
groups,
|
||||
showOnlyStep2 = false,
|
||||
}) => {
|
||||
@ -54,7 +53,7 @@ const InscriptionForm = ({
|
||||
};
|
||||
});
|
||||
|
||||
const [step, setStep] = useState(currentStep || 1);
|
||||
const [step, setStep] = useState(1);
|
||||
const [selectedStudent, setSelectedEleve] = useState('');
|
||||
const [existingGuardians, setExistingGuardians] = useState([]);
|
||||
const [totalRegistrationAmount, setTotalRegistrationAmount] = useState(0);
|
||||
@ -134,10 +133,6 @@ const InscriptionForm = ({
|
||||
formDataRef.current = formData; // Mettre à jour la référence à chaque changement de formData
|
||||
}, [formData]);
|
||||
|
||||
useEffect(() => {
|
||||
setStep(currentStep || 1);
|
||||
}, [currentStep]);
|
||||
|
||||
const handleToggleChange = () => {
|
||||
setFormData({ ...formData, autoMail: !formData.autoMail });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user