diff --git a/src/components/CommonUserModal.tsx b/src/components/CommonUserModal.tsx index c15e853..0e61a87 100644 --- a/src/components/CommonUserModal.tsx +++ b/src/components/CommonUserModal.tsx @@ -296,7 +296,8 @@ const CommonUserModal: React.FC = ({ const { username, password } = result; const apiBody: any = { - username: userType === FormContextType.STUDENT ? username : formData.email, + username: + userType === FormContextType.STUDENT ? username : formData.email, password: password, tenantCohortRoleMapping: [ { @@ -351,10 +352,9 @@ const CommonUserModal: React.FC = ({ } } else { if (fieldId) { - apiBody.customFields.push({ fieldId: fieldId, - value: fieldValue?String(fieldValue):"", + value: fieldValue ? String(fieldValue) : "", }); } }