diff --git a/src/components/identification-form.jsx b/src/components/identification-form.jsx index cb9ec45..682a221 100644 --- a/src/components/identification-form.jsx +++ b/src/components/identification-form.jsx @@ -73,7 +73,7 @@ const IdentificationForm = () => { }; const onChange = (e, index) => { - const newFormData = [...formData]; + const newFormData = JSON.parse(JSON.stringify(formData)); newFormData[index][e.target.name] = e.target.value; setFormData(newFormData); };