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.

Update add-edit-link.tsx

Kiran K681a268cc82d
diff --git a/apps/web/app/app.dub.co/embed/referrals/add-edit-link.tsx b/apps/web/app/app.dub.co/embed/referrals/add-edit-link.tsx
index 734e7682df..b824ee4ac5 100644
--- a/apps/web/app/app.dub.co/embed/referrals/add-edit-link.tsx
+++ b/apps/web/app/app.dub.co/embed/referrals/add-edit-link.tsx
@@ -82,6 +82,10 @@ export function ReferralsEmbedCreateUpdateLink({
return;
}
+ if (!link) {
+ copyToClipboard(result.shortLink);
+ }
+
await mutateSuffix("api/embed/referrals/links");
onCancel();
} finally {