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.

Update app-sidebar-nav.tsx

Kiran K8fa8ea86c183
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 90532223d7..b2b51d26ce 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -410,7 +410,7 @@ export function AppSidebarNav({
}, [slug, pathname]);
const applicationsCount = useProgramApplicationsCount({
- enabled: currentArea === "program",
+ enabled: Boolean(currentArea === "program" && defaultProgramId),
});
const { data: customersCount } = useCustomersCount({