Skip to content

Commit

Permalink
format file
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Jan 30, 2025
1 parent 860a577 commit 6b08978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/CommonUserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ const CommonUserModal: React.FC<UserModalProps> = ({
const { username, password } = result;

const apiBody: any = {
username: userType === FormContextType.STUDENT ? username : formData.email,
username:
userType === FormContextType.STUDENT ? username : formData.email,
password: password,
tenantCohortRoleMapping: [
{
Expand Down Expand Up @@ -351,10 +352,9 @@ const CommonUserModal: React.FC<UserModalProps> = ({
}
} else {
if (fieldId) {

apiBody.customFields.push({
fieldId: fieldId,
value: fieldValue?String(fieldValue):"",
value: fieldValue ? String(fieldValue) : "",
});
}
}
Expand Down

0 comments on commit 6b08978

Please sign in to comment.