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.

hide news when CreateProgramCard is present

Steven Teyb9e01e0a9e0b
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 73524864d7..9524a41921 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -269,7 +269,11 @@ export function AppSidebarNav({
}),
programs,
session: session || undefined,
- showNews: pathname.startsWith(`/${slug}/programs/`) ? false : true,
+ showNews:
+ pathname.startsWith(`/${slug}/programs/`) ||
+ (programs && programs.length === 0)
+ ? false
+ : true,
}}
toolContent={toolContent}
newsContent={newsContent}