I have a nested Formik form which has checkbox in every new set of form fields added. I am trying to add validation in Yup to achieve:
- Atleast one checkbox to be selected among all the sets.

- Not throw error for other checkboxes if one is selected.

Right now, it throws error for other checkboxes if a particular checkbox is selected. Anyone who can guide me on how to prevent this would be really helpful.
Link to the code I have tried so far: https://codesandbox.io/s/formik-nested-form-mx15kt