Skip to content

Commit c380024

Browse files
fix: resolved lint warnings (#468)
Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com>%0ACo-authored-by: Ashmit Jagtap <ashmitjagtap2209@gmail.com>
1 parent 052353c commit c380024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/Form/Cfp/stepThree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function StepThree({ setStep, setForm, data }) {
3333
const [value, setValue] = useState({});
3434
useEffect(() => {
3535
setForm({ ...data, ...value});
36-
}, [value]);
36+
}, [value, data, setForm]);
3737
return (
3838
<form className="mt-3 w-[30rem] lg:w-[auto]" onSubmit={(e) => setStep(e, 4)}>
3939
<h1 className="text-white font-bold text-4xl lg:text-3xl">

components/Form/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Dropdown({ options, title, setValue, multi ,dataTest}) {
4545
} else {
4646
setValue(selectedOption.value);
4747
}
48-
}, [selectedOption]);
48+
}, [selectedOption, multi, setValue]);
4949
return (
5050
<div className="relative inline-block w-full">
5151
<Select

0 commit comments

Comments
 (0)