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 bug

Steven Teyc29baec6f34a
diff --git a/apps/web/ui/analytics/top-links.tsx b/apps/web/ui/analytics/top-links.tsx
index aaf419c22d..399e35e044 100644
--- a/apps/web/ui/analytics/top-links.tsx
+++ b/apps/web/ui/analytics/top-links.tsx
@@ -51,7 +51,9 @@ export default function TopLinks() {
/>
),
title:
- tab === "link" ? d["shortLink"].replace(/^https?:\/\//, "") : d.url,
+ tab === "link" && d["shortLink"]
+ ? d["shortLink"].replace(/^https?:\/\//, "")
+ : d.url,
href: queryParams({
set: {
...(tab === "link"