Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix usePartnersCount

Steven Teyd98e8718b5eb
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
index 7b36d0a4da..130b6258d1 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
@@ -71,9 +71,9 @@ export default function PlanUsage() {
const { users } = useWorkspaceUsers();
const { partnersCount } = usePartnersCount<number>({
- programId: defaultProgramId ?? undefined,
status: "approved",
ignoreParams: true,
+ enabled: Boolean(defaultProgramId),
});
const { groupsCount } = useGroupsCount();