From c380024225a4ad59cb00506d25cb36edf5a2e2e7 Mon Sep 17 00:00:00 2001 From: Sahil Dahekar Date: Tue, 17 Dec 2024 12:56:05 +0530 Subject: [PATCH 1/3] fix: resolved lint warnings (#468) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com>%0ACo-authored-by: Ashmit Jagtap --- components/Form/Cfp/stepThree.js | 2 +- components/Form/select.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (