diff --git a/src/components/CreateEcosystemOrgModal/index.tsx b/src/components/CreateEcosystemOrgModal/index.tsx index 9e02683e2..5ebda9078 100644 --- a/src/components/CreateEcosystemOrgModal/index.tsx +++ b/src/components/CreateEcosystemOrgModal/index.tsx @@ -235,11 +235,14 @@ const CreateEcosystemOrgModal = (props: IProps) => { return ( { setLogoImage({ - logoFile: "", - imagePreviewUrl: "", - fileName: '' + logoFile: " ", + imagePreviewUrl: " ", + fileName: ' ' + }) + setFormData({ + name:" ", + description:" " }) - setFormData(initialFormData) props.setOpenModal(false) } }> @@ -267,8 +270,8 @@ const CreateEcosystemOrgModal = (props: IProps) => { values: Values, { resetForm }: FormikHelpers ) => { - submit(values) + resetForm(); }} > diff --git a/src/components/organization/invitations/SendInvitationModal.tsx b/src/components/organization/invitations/SendInvitationModal.tsx index 3eec2645a..0dcb522f9 100644 --- a/src/components/organization/invitations/SendInvitationModal.tsx +++ b/src/components/organization/invitations/SendInvitationModal.tsx @@ -145,7 +145,9 @@ const SendInvitationModal = (props: { show={props.openModal} onClose={() => { setInvitations([]); - setInitialInvitationData(initialData); + setInitialInvitationData({ + email:" ", + }); props.setOpenModal(false); }} >