Reactjs Conditional Yup Validation Is Not Working Stack Overflow

Reactjs Conditional Yup Validation Is Not Working Stack Overflow