diff --git a/apps/saladeaula.digital/app/routes/layout.tsx b/apps/saladeaula.digital/app/routes/layout.tsx index 7f8eb58..7ba68f6 100644 --- a/apps/saladeaula.digital/app/routes/layout.tsx +++ b/apps/saladeaula.digital/app/routes/layout.tsx @@ -147,6 +147,7 @@ export default function Component({ + !excludeApps.includes(appId)) - .map(({ appId, title, url, scope = [], icon: Icon }) => { - if (grantIfHas(scope, userScope)) { - return ( - - - {title} - - - ) - } - - return <> - })} + .filter(({ scope = [] }) => grantIfHas(scope, userScope)) + .map(({ appId, title, url, icon: Icon }) => ( + + + {title} + + + ))}