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 record-click.ts

Steven Tey1d56848cb61e
diff --git a/apps/web/lib/tinybird/record-click.ts b/apps/web/lib/tinybird/record-click.ts
index d2eb4c8a6b..38ac5a17af 100644
--- a/apps/web/lib/tinybird/record-click.ts
+++ b/apps/web/lib/tinybird/record-click.ts
@@ -77,7 +77,7 @@ export async function recordClick({
: LOCALHOST_GEO_DATA.continent;
const geo =
process.env.VERCEL === "1" ? geolocation(req) : LOCALHOST_GEO_DATA;
- const isEuCountry = geo?.country && EU_COUNTRY_CODES.includes(geo.country);
+ const isEuCountry = geo.country && EU_COUNTRY_CODES.includes(geo.country);
const ua = userAgent(req);
const referer = req.headers.get("referer");