From 8b54426b897476dcf77352ef3e5f5ed2d06b5158 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Mon, 26 Aug 2024 18:19:08 +0200 Subject: [PATCH] Fix invalid dom nesting --- src/login/UserProfileFormFields.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/login/UserProfileFormFields.tsx b/src/login/UserProfileFormFields.tsx index 67cb7320..445bda6f 100644 --- a/src/login/UserProfileFormFields.tsx +++ b/src/login/UserProfileFormFields.tsx @@ -580,7 +580,7 @@ function TextareaTag(props: InputFieldByTypeProps) { function SelectTag(props: InputFieldByTypeProps) { const { attribute, dispatchFormAction, kcClsx, displayableErrors, i18n, valueOrValues } = props; - const { advancedMsg } = i18n; + const { advancedMsgStr } = i18n; const isMultiple = attribute.annotations.inputType === "multiselect"; @@ -649,11 +649,11 @@ function SelectTag(props: InputFieldByTypeProps) { if (attribute.annotations.inputOptionLabels !== undefined) { const { inputOptionLabels } = attribute.annotations; - return advancedMsg(inputOptionLabels[option] ?? option); + return advancedMsgStr(inputOptionLabels[option] ?? option); } if (attribute.annotations.inputOptionLabelsI18nPrefix !== undefined) { - return advancedMsg(`${attribute.annotations.inputOptionLabelsI18nPrefix}.${option}`); + return advancedMsgStr(`${attribute.annotations.inputOptionLabelsI18nPrefix}.${option}`); } return option;