Skip to content

Commit

Permalink
#679 (patch for v25)
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 5, 2024
1 parent 17958f4 commit 4375d06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/KcAccountUiLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,11 @@ function init(
data.userProfileMetadata ??= {};
data.userProfileMetadata.attributes ??= [];

if (!data.userProfileMetadata.attributes.includes("locale")) {
if (
!data.userProfileMetadata.attributes.find(
(attribute: any) => attribute.name === "locale",
)
) {
wasLocaleAttributeManuallyAdded = true;
data.userProfileMetadata.attributes.unshift({
name: "locale",
Expand Down

0 comments on commit 4375d06

Please sign in to comment.