diff --git a/apps/login/src/components/consent.tsx b/apps/login/src/components/consent.tsx
index 30d5b4e407..d3d30b3113 100644
--- a/apps/login/src/components/consent.tsx
+++ b/apps/login/src/components/consent.tsx
@@ -43,28 +43,33 @@ export function ConsentScreen({
}
}
+ const scopes = scope?.filter((s) => !!s);
+
return (
- {scope
- ?.filter((s) => !!s)
- .map((s) => {
- const translationKey = `device.scope.${s}`;
- const description = t(translationKey, null);
+ {scopes?.length === 0 && (
+
+ {t("device.scope.openid")}
+
+ )}
+ {scopes?.map((s) => {
+ const translationKey = `device.scope.${s}`;
+ const description = t(translationKey, null);
- // Check if the key itself is returned and provide a fallback
- const resolvedDescription =
- description === translationKey ? "" : description;
+ // Check if the key itself is returned and provide a fallback
+ const resolvedDescription =
+ description === translationKey ? "" : description;
- return (
- -
- {resolvedDescription}
-
- );
- })}
+ return (
+ -
+ {resolvedDescription}
+
+ );
+ })}