diff --git a/src/clients/add/LogoutPanel.tsx b/src/clients/add/LogoutPanel.tsx
index c5499fb4ce..323f422240 100644
--- a/src/clients/add/LogoutPanel.tsx
+++ b/src/clients/add/LogoutPanel.tsx
@@ -57,51 +57,50 @@ export const LogoutPanel = ({
id="kc-frontchannelLogout-switch"
label={t("common:on")}
labelOff={t("common:off")}
- isChecked={value.toString() === "true"}
- onChange={(value) => onChange(value.toString())}
+ isChecked={value}
+ onChange={onChange}
/>
)}
/>
- {protocol === "openid-connect" &&
- frontchannelLogout?.toString() === "true" && (
-
- }
- helperTextInvalid={
- errors.attributes?.frontchannel?.logout?.url?.message
- }
+ {protocol === "openid-connect" && frontchannelLogout && (
+
+ }
+ helperTextInvalid={
+ errors.attributes?.frontchannel?.logout?.url?.message
+ }
+ validated={
+ errors.attributes?.frontchannel?.logout?.url?.message
+ ? ValidatedOptions.error
+ : ValidatedOptions.default
+ }
+ >
+
+ ((uri.startsWith("https://") || uri.startsWith("http://")) &&
+ !uri.includes("*")) ||
+ uri === "" ||
+ t("frontchannelUrlInvalid").toString(),
+ })}
validated={
errors.attributes?.frontchannel?.logout?.url?.message
? ValidatedOptions.error
: ValidatedOptions.default
}
- >
-
- ((uri.startsWith("https://") || uri.startsWith("http://")) &&
- !uri.includes("*")) ||
- uri === "" ||
- t("frontchannelUrlInvalid").toString(),
- })}
- validated={
- errors.attributes?.frontchannel?.logout?.url?.message
- ? ValidatedOptions.error
- : ValidatedOptions.default
- }
- />
-
- )}
+ />
+
+ )}