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 is-first-conversion.ts

Steven Tey62a5c4978d7f
diff --git a/apps/web/lib/analytics/is-first-conversion.ts b/apps/web/lib/analytics/is-first-conversion.ts
index 9f0227d0d5..9c1db221fd 100644
--- a/apps/web/lib/analytics/is-first-conversion.ts
+++ b/apps/web/lib/analytics/is-first-conversion.ts
@@ -14,7 +14,7 @@ export const isFirstConversion = ({
// if customer has sales, but the original referral link is not the same as the current link
// it is most likely a first conversion
- if (customer.linkId === linkId) {
+ if (customer.linkId !== linkId) {
// TODO: fix edge case where customer was brought in by a different link, but then had recurring sales on the current link
return true;
}