fix(notification subs): made it so only acitve show

closes #14
This commit is contained in:
2026-05-13 20:50:51 -05:00
parent 30ff7b71d9
commit 2616acf106

View File

@@ -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 (
<div>
<Card className="p-3 w-lg">