The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Link similar email matches to the matched customer
Rafi374094225131
diff --git a/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-matching-customer-email-table.tsx b/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-matching-customer-email-table.tsxindex 6e7a5a80ad..14e4b01ffe 100644--- a/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-matching-customer-email-table.tsx+++ b/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-matching-customer-email-table.tsx@@ -25,8 +25,12 @@ function getRowHref(row: EventDataProps, workspaceSlug?: string) {return `/${workspaceSlug}/program/customers?partnerId=${row.partner.id}&search=${extractEmailDomain(row.customer.email)}`;}- if (row.metadata?.matchType === CustomerEmailMatchType.SIMILAR_EMAIL_MATCH) {- return `/${workspaceSlug}/program/customers?partnerId=${row.partner.id}`;+ // The matched customer can belong to another partner in the program+ if (+ row.metadata?.matchType === CustomerEmailMatchType.SIMILAR_EMAIL_MATCH &&+ row.metadata.matchedCustomerId+ ) {+ return `/${workspaceSlug}/program/customers/${row.metadata.matchedCustomerId}`;}return `/${workspaceSlug}/events?event=leads&interval=all&customerId=${row.customer.id}`;