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.

valid stripeId check

Steven Tey086daa74cf7e
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/page-client.tsx
index 12b472edc5..8b684e0284 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/page-client.tsx
@@ -93,12 +93,13 @@ function WorkspaceLinks() {
// We show the .link offer modal if:
// - The upgraded modal is not open
- // - The user has a paid plan
+ // - The user has a paid plan (and valid stripe ID)
// - The user has no custom domains
// - The user has not claimed their .link domain
// - The user has not dismissed the .link offer modal
if (
!searchParams.has("upgraded") &&
+ workspace.stripeId &&
workspace.plan &&
workspace.plan !== "free" &&
workspace.domains?.length === 0 &&