diff --git a/src/component/OrganisationDetails/OrgDetailsContainer.tsx b/src/component/OrganisationDetails/OrgDetailsContainer.tsx index 0e6cf0b..31afb6a 100644 --- a/src/component/OrganisationDetails/OrgDetailsContainer.tsx +++ b/src/component/OrganisationDetails/OrgDetailsContainer.tsx @@ -58,7 +58,7 @@ const OrganisationDetailsContainer = (props: Props) => { const dispatch = useAppDispatch(); const [ formValue, setFormValue ] = useState( { - 'orgName': '', + 'name': '', 'location': '', 'policyUrl': '', 'description': '' @@ -66,7 +66,7 @@ const OrganisationDetailsContainer = (props: Props) => { useEffect(() => { setFormValue({ - 'orgName': organisationDetails?.name, + 'name': organisationDetails?.name, 'location': organisationDetails?.location, 'policyUrl': organisationDetails?.policyUrl, 'description': organisationDetails?.description @@ -94,7 +94,9 @@ const handleChange = (e) => { const handleSave = () => { const obj = { - ...formValue, "required": {} + "dataSource": { + ...formValue + } } dispatch(updateDataSource(obj)) } @@ -141,12 +143,12 @@ const addCredentialClass = isVerify ? 'view-credential' : !isEnableAddCredential handleChange(e)} variant="standard" placeholder={t("gettingStarted.organisationName")} fullWidth - name='orgName' + name='name' style={{ ...editStyleEnable, marginTop: "0.9px",