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 membersCount

Steven Teyee7cb0baec96
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 7143774621..14da8dbb44 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
@@ -67,7 +67,6 @@ export default function PlanUsage() {
const { data: tags } = useTagsCount();
const { users } = useWorkspaceUsers();
- const { searchParamsObj } = useRouterStuff();
const { partnersCount } = usePartnersCount<number>({
programId: defaultProgramId ?? undefined,
diff --git a/apps/web/ui/layout/sidebar/workspace-dropdown.tsx b/apps/web/ui/layout/sidebar/workspace-dropdown.tsx
index 3348df7d5e..5cfe2c11dd 100644
--- a/apps/web/ui/layout/sidebar/workspace-dropdown.tsx
+++ b/apps/web/ui/layout/sidebar/workspace-dropdown.tsx
@@ -148,7 +148,7 @@ function WorkspaceList({
const { scrollProgress, updateScrollProgress } = useScrollProgress(scrollRef);
const { users } = useWorkspaceUsers();
- const membersCount = users?.length ?? 0;
+ const membersCount = users?.filter((user) => !user.isMachine).length ?? 0;
const href = useCallback(
(slug: string) => {