diff --git a/frontend/src/routes/(auth)/-components/NotificationsSubCard.tsx b/frontend/src/routes/(auth)/-components/NotificationsSubCard.tsx index 0b5cbfa..7f3f2fc 100644 --- a/frontend/src/routes/(auth)/-components/NotificationsSubCard.tsx +++ b/frontend/src/routes/(auth)/-components/NotificationsSubCard.tsx @@ -45,14 +45,14 @@ export default function NotificationsSubCard({ user }: any) { let n: any = []; if (data) { - n = data.map((i: any) => ({ - label: i.name, - value: i.id, - })); + n = data + .filter((n: any) => n.active) + .map((i: any) => ({ + label: i.name, + value: i.id, + })); } - console.log(n); - return (