Skip to content

Commit

Permalink
Merge pull request #6996 from pavinduLakshan/fix_user_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Oct 18, 2024
2 parents 5a13f0c + e39d224 commit fde1c8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-months-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.users.v1": patch
---

Fix not being able to set first name and last name to empty in user profile
7 changes: 4 additions & 3 deletions features/admin.users.v1/components/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,12 @@ export const UserProfile: FunctionComponent<UserProfilePropsInterface> = (
};
} else if (schemaNames[0] === UserManagementConstants.SCIM2_SCHEMA_DICTIONARY
.get("NAME")) {
values.get(schema.name) && (

if (!values.get(schema.name) || values.get(schema.name) === "") {
opValue = {
name: { [schemaNames[1]]: values.get(schema.name) }
}
);
};
}
} else {
if (schemaNames[0].includes("addresses")) {
if (schemaNames[0].split("#").length > 1) {
Expand Down

0 comments on commit fde1c8a

Please sign in to comment.