diff --git a/.changeset/eight-ties-drop.md b/.changeset/eight-ties-drop.md new file mode 100644 index 00000000000..52ed3b5a327 --- /dev/null +++ b/.changeset/eight-ties-drop.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.users.v1": patch +--- + +Fix not being able to update user profile diff --git a/features/admin.users.v1/components/user-profile.tsx b/features/admin.users.v1/components/user-profile.tsx index 5e6a09dc321..ddf1d9bf96c 100644 --- a/features/admin.users.v1/components/user-profile.tsx +++ b/features/admin.users.v1/components/user-profile.tsx @@ -815,7 +815,7 @@ export const UserProfile: FunctionComponent = ( } 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) } };