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.

small fix

Kiran K08bce46af20a
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx
index d62fe7665a..4b3c41466f 100644
--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx
+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx
@@ -73,6 +73,8 @@ export function ReferralsEmbedCreateUpdateLink({
setIsExactMode(additionalLink?.validationMode === "exact");
}, [destinationDomain, additionalLinks]);
+ // console.log(destinationDomain)
+
const {
watch,
setValue,
@@ -301,7 +303,7 @@ export function ReferralsEmbedCreateUpdateLink({
isExactMode,
},
)}
- {...register("url", { required: !isExactMode })}
+ {...register("url", { required: false })}
/>
</div>
</div>
@@ -363,7 +365,7 @@ function DestinationDomainCombobox({
: null
}
setSelected={(option) => {
- if (!option || disabled) return;
+ if (!option) return;
setSelectedDomain(option.value);
}}
options={options}
diff --git a/apps/web/ui/modals/partner-link-modal.tsx b/apps/web/ui/modals/partner-link-modal.tsx
index 0a875723e1..6f3dff86cf 100644
--- a/apps/web/ui/modals/partner-link-modal.tsx
+++ b/apps/web/ui/modals/partner-link-modal.tsx
@@ -548,7 +548,7 @@ function DestinationDomainCombobox({
: null
}
setSelected={(option) => {
- if (!option || disabled) return;
+ if (!option) return;
setSelectedDomain(option.value);
}}
options={options}