diff --git a/components/groups/forms/groups/MemberInfoForm.tsx b/components/groups/forms/groups/MemberInfoForm.tsx index 920683a9..a9d53709 100644 --- a/components/groups/forms/groups/MemberInfoForm.tsx +++ b/components/groups/forms/groups/MemberInfoForm.tsx @@ -15,7 +15,6 @@ const MemberSchema = Yup.object().shape({ const MemberInfoSchema = Yup.object().shape({ members: Yup.array().of(MemberSchema).min(1, 'At least one member is required'), }); - export default function MemberInfoForm({ formData, dispatch, @@ -30,6 +29,7 @@ export default function MemberInfoForm({ address: string; }>) { const [numberOfMembers, setNumberOfMembers] = useState(formData.members.length); + console.log('formData', formData); const updateMembers = () => { const currentLength = formData.members.length; if (numberOfMembers > currentLength) { @@ -103,95 +103,92 @@ export default function MemberInfoForm({ validateOnChange={true} validateOnBlur={true} > - {({ values, isValid, errors, setFieldValue }) => { - return ( -