* fixed Consent screen text was not shown (#2145)
This commit is contained in:
parent
d46263d6c6
commit
17c0eb801c
1 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,8 @@ export const ScopeForm = ({ clientScope, save }: ScopeFormProps) => {
|
||||||
const displayOnConsentScreen = useWatch({
|
const displayOnConsentScreen = useWatch({
|
||||||
control,
|
control,
|
||||||
name: "attributes.display.on.consent.screen",
|
name: "attributes.display.on.consent.screen",
|
||||||
|
defaultValue:
|
||||||
|
clientScope.attributes?.["display.on.consent.screen"] ?? "true",
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -202,7 +204,7 @@ export const ScopeForm = ({ clientScope, save }: ScopeFormProps) => {
|
||||||
<Controller
|
<Controller
|
||||||
name="attributes.display.on.consent.screen"
|
name="attributes.display.on.consent.screen"
|
||||||
control={control}
|
control={control}
|
||||||
defaultValue="true"
|
defaultValue={displayOnConsentScreen}
|
||||||
render={({ onChange, value }) => (
|
render={({ onChange, value }) => (
|
||||||
<Switch
|
<Switch
|
||||||
id="kc-display.on.consent.screen-switch"
|
id="kc-display.on.consent.screen-switch"
|
||||||
|
|
Loading…
Reference in a new issue