diff --git a/src/components/Form/Form.jsx b/src/components/Form/Form.jsx index 04c592a..dc39969 100644 --- a/src/components/Form/Form.jsx +++ b/src/components/Form/Form.jsx @@ -32,7 +32,15 @@ const Form = () => { const { register, handleSubmit,reset } = useForm() const onSubmit = async (dataa) => { - const {usn,whatsapp} = dataa + const {usn,whatsapp,branch, year} = dataa + if(branch === "Select Branch") { + toast.error("Enter Your Branch",{duration:2500}) + return + } + if(year === "Select year") { + toast.error("Enter Your Year",{duration:2500}) + return + } if(!phoneRegex.test(whatsapp)){ toast.error("Please enter a valid 10 digit phone no.",{duration:3000}) return diff --git a/src/components/sections/Cta.js b/src/components/sections/Cta.js index 3f03013..3a8d899 100644 --- a/src/components/sections/Cta.js +++ b/src/components/sections/Cta.js @@ -55,7 +55,7 @@ const Cta = ({ */} - +