Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

returnting country: null in case it's not valid

Blue Mouseff8719804667
diff --git a/apps/production/src/user/user.controller.ts b/apps/production/src/user/user.controller.ts
index 67496fd9d..933373fc9 100644
--- a/apps/production/src/user/user.controller.ts
+++ b/apps/production/src/user/user.controller.ts
@@ -623,7 +623,7 @@ export class UserController {
const country = headers['cf-ipcountry'] || 'XX'
return {
- country,
+ country: (country === 'XX' || country === 'T1') ? null : country,
...this.userService.getCurrencyByCountry(country),
}
}