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 CustomerSelector to support email filtering

Steven Tey7e74c91defb6
diff --git a/apps/web/ui/customers/customer-selector.tsx b/apps/web/ui/customers/customer-selector.tsx
index e831ee00f6..270d03836c 100644
--- a/apps/web/ui/customers/customer-selector.tsx
+++ b/apps/web/ui/customers/customer-selector.tsx
@@ -54,7 +54,7 @@ export function CustomerSelector({
const customerOptions = useMemo(() => {
return (
customers?.map((customer) => ({
- value: customer.id,
+ value: customer.email || customer.id,
label: customer.name || customer.email || customer.externalId,
icon: (
<span className="shrink-0 text-neutral-600">
@@ -75,7 +75,7 @@ export function CustomerSelector({
if (!customer) return null;
return {
- value: customer.id,
+ value: customer.email || customer.id,
label: customer.name || customer.email || customer.externalId,
icon: (
<span className="shrink-0 text-neutral-600">