Skip to content

Commit

Permalink
Merge pull request #7074 from pavinduLakshan/fix_user_profile_update
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Oct 31, 2024
2 parents f695ec4 + f9090c4 commit 27cfb7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-ties-drop.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 update user profile
2 changes: 1 addition & 1 deletion features/admin.users.v1/components/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ export const UserProfile: FunctionComponent<UserProfilePropsInterface> = (
} else if (schemaNames[0] === UserManagementConstants.SCIM2_SCHEMA_DICTIONARY
.get("NAME")) {

if (!values.get(schema.name) || values.get(schema.name) === "") {
if (values.get(schema.name) || values.get(schema.name) === "") {
opValue = {
name: { [schemaNames[1]]: values.get(schema.name) }
};
Expand Down

0 comments on commit 27cfb7c

Please sign in to comment.