From 2616acf106530f5c5ee04d1b79033795cf06b42d Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 13 May 2026 20:50:51 -0500 Subject: [PATCH] fix(notification subs): made it so only acitve show closes #14 --- .../(auth)/-components/NotificationsSubCard.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 (