* fixed Consent screen text was not shown (#2145)

This commit is contained in:
ikhomyn 2022-02-25 18:26:07 +01:00 committed by GitHub
parent d46263d6c6
commit 17c0eb801c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,8 @@ export const ScopeForm = ({ clientScope, save }: ScopeFormProps) => {
const displayOnConsentScreen = useWatch({
control,
name: "attributes.display.on.consent.screen",
defaultValue:
clientScope.attributes?.["display.on.consent.screen"] ?? "true",
});
useEffect(() => {
@ -202,7 +204,7 @@ export const ScopeForm = ({ clientScope, save }: ScopeFormProps) => {
<Controller
name="attributes.display.on.consent.screen"
control={control}
defaultValue="true"
defaultValue={displayOnConsentScreen}
render={({ onChange, value }) => (
<Switch
id="kc-display.on.consent.screen-switch"