diff --git a/ondeck/src/app/(dashboard)/clients/page.tsx b/ondeck/src/app/(dashboard)/clients/page.tsx index 1fe29b3..0064060 100644 --- a/ondeck/src/app/(dashboard)/clients/page.tsx +++ b/ondeck/src/app/(dashboard)/clients/page.tsx @@ -52,7 +52,7 @@ export default async function ClientsPage() { parentClient: { select: { id: true, name: true } }, _count: { select: { - policies: true, + policies: { where: { status: 'Active' } }, tasks: true, subsidiaries: true, }, diff --git a/ondeck/src/app/api/clients/route.ts b/ondeck/src/app/api/clients/route.ts index aa9ca9d..aaa9c40 100644 --- a/ondeck/src/app/api/clients/route.ts +++ b/ondeck/src/app/api/clients/route.ts @@ -146,7 +146,7 @@ export async function GET(request: NextRequest) { parentClient: { select: { id: true, name: true } }, _count: { select: { - policies: true, + policies: { where: { status: 'Active' } }, tasks: true, subsidiaries: true, },