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.

Fixed intercepting routes bug

Steven Tey76600861f4cd
diff --git a/app/dub.sh/providers.tsx b/app/dub.sh/providers.tsx
index 3b36d6ab3d..b9c4b11c13 100644
--- a/app/dub.sh/providers.tsx
+++ b/app/dub.sh/providers.tsx
@@ -14,8 +14,8 @@ export default function Providers({
const segment = useSelectedLayoutSegment();
return (
<div>
- {/* Only show stats modal if not on the /stats page */}
- {segment !== "stats" && modal}
+ {/* Only show stats modal if it's on the home page */}
+ {!segment && modal}
<Toaster />
{children}
</div>