Fallback to display text consent scopes (#40789)

Closes #40788

Signed-off-by: Alexis Rico <sferadev@gmail.com>
This commit is contained in:
Alexis Rico 2025-07-21 22:46:18 +02:00 committed by GitHub
parent 6bf8e1c48f
commit 15b0f032cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +216,8 @@ export const Applications = () => {
</DescriptionListTerm>
{application.consent.grantedScopes.map((scope) => (
<DescriptionListDescription key={`scope${scope.id}`}>
<CheckIcon /> {t(scope.name as TFuncKey)}
<CheckIcon />{" "}
{t(scope.name as TFuncKey, scope.displayText)}
</DescriptionListDescription>
))}
</DescriptionListGroup>