* 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({
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue