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 Links tab in embd when group.additionalLinks === 0

Steven Tey3ea5733027f7
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
index b537fc4d2f..3fd83e53dc 100644
--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
@@ -98,14 +98,14 @@ export function ReferralsEmbedPageClient({
() => [
...(showQuickstart ? ["Quickstart"] : []),
"Earnings",
- "Links",
+ ...(group.additionalLinks.length > 0 ? ["Links"] : []),
...(programEmbedData?.leaderboard?.mode === "disabled"
? []
: ["Leaderboard"]),
"FAQ",
...(hasResources ? ["Resources"] : []),
],
- [showQuickstart, hasResources],
+ [showQuickstart, group.additionalLinks, programEmbedData, hasResources],
);
const [copied, copyToClipboard] = useCopyToClipboard();