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!

fixed yearly frequency being always returned

Blue Mousec6e2f1822d25
diff --git a/apps/production/src/user/user.service.ts b/apps/production/src/user/user.service.ts
index 194a1d2a3..7c1766be4 100644
--- a/apps/production/src/user/user.service.ts
+++ b/apps/production/src/user/user.service.ts
@@ -333,7 +333,7 @@ export class UserService {
const planCode = plan.id
const billingFrequency =
// @ts-ignore
- plan?.pid === planId
+ Number(plan?.pid) === planId
? BillingFrequency.Monthly
: BillingFrequency.Yearly