diff --git a/components/Form/Cfp/stepThree.js b/components/Form/Cfp/stepThree.js index d8409697..c7ae26e4 100644 --- a/components/Form/Cfp/stepThree.js +++ b/components/Form/Cfp/stepThree.js @@ -33,7 +33,7 @@ function StepThree({ setStep, setForm, data }) { const [value, setValue] = useState({}); useEffect(() => { setForm({ ...data, ...value}); - }, [value]); + }, [value, data, setForm]); return (
setStep(e, 4)}>

diff --git a/components/Form/select.js b/components/Form/select.js index a3dd8b57..a8c966e0 100644 --- a/components/Form/select.js +++ b/components/Form/select.js @@ -45,7 +45,7 @@ function Dropdown({ options, title, setValue, multi ,dataTest}) { } else { setValue(selectedOption.value); } - }, [selectedOption]); + }, [selectedOption, multi, setValue]); return (