filter for undefined scope values

This commit is contained in:
Max Peintner
2025-05-06 15:48:37 +02:00
parent 1f94e40af7
commit 3c28e71c0e

View File

@@ -43,10 +43,13 @@ export function ConsentScreen({
}
}
console.log("scope", scope);
return (
<div className="pt-4 w-full flex flex-col items-center space-y-4">
<ul className="list-disc space-y-2 w-full">
{scope?.map((s) => {
{scope
?.filter((s) => !!s)
.map((s) => {
const translationKey = `device.scope.${s}`;
const description = t(translationKey, null);