From 17c0eb801c8dc1d53733312e2012fb3e23c4877d Mon Sep 17 00:00:00 2001 From: ikhomyn <89014675+ikhomyn@users.noreply.github.com> Date: Fri, 25 Feb 2022 18:26:07 +0100 Subject: [PATCH] * fixed Consent screen text was not shown (#2145) --- src/client-scopes/details/ScopeForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client-scopes/details/ScopeForm.tsx b/src/client-scopes/details/ScopeForm.tsx index 0b489430e4..deb3538af6 100644 --- a/src/client-scopes/details/ScopeForm.tsx +++ b/src/client-scopes/details/ScopeForm.tsx @@ -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) => { (