Relative Content

Tag Archive for formikyup

I don’t understand why Yup is casting this value as an array

I’m fairly new to Formik and Yup. I’m confused on why the selectedJobType is being typed as an array in my conditional for the languages validation. jobType is a string from a select box, so I would expect selectedJobType to be a string as well. Instead it is coming in as any[].