diff --git a/apps/login/src/components/consent.tsx b/apps/login/src/components/consent.tsx
index 6ae3cade45..7897ed7d7d 100644
--- a/apps/login/src/components/consent.tsx
+++ b/apps/login/src/components/consent.tsx
@@ -43,27 +43,30 @@ export function ConsentScreen({
}
}
+ console.log("scope", scope);
return (
- {scope?.map((s) => {
- const translationKey = `device.scope.${s}`;
- const description = t(translationKey, null);
+ {scope
+ ?.filter((s) => !!s)
+ .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 (
- -
- {s}
- {resolvedDescription}
-
- );
- })}
+ return (
+ -
+ {s}
+ {resolvedDescription}
+
+ );
+ })}