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.

Add console.log for debugging in preview

Tim Wilson9a246bd3bf59
diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
index 56e2868bd1..6cbfd00f07 100644
--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
@@ -109,6 +109,8 @@ function NavItem({ pathname, item }: { pathname: string; item: NavItem }) {
const isActive = exact ? pathname === href : pathname.startsWith(href);
+ console.log("NavItem active check", { pathname, href, exact, isActive });
+
const [hovered, setHovered] = useState(false);
return (