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!

fix: inert switch

Blue Mouse576c0558640c
diff --git a/web/app/components/pricing/BillingPricing.tsx b/web/app/components/pricing/BillingPricing.tsx
index 5096aa916..c99e607dd 100644
--- a/web/app/components/pricing/BillingPricing.tsx
+++ b/web/app/components/pricing/BillingPricing.tsx
@@ -336,7 +336,13 @@ const BillingPricing = ({
) : null}
<Switch
checked={billingFrequency === BillingFrequency.yearly}
- onChange={() => {}}
+ onChange={() =>
+ setBillingFrequency(
+ billingFrequency === BillingFrequency.yearly
+ ? BillingFrequency.monthly
+ : BillingFrequency.yearly,
+ )
+ }
/>
</button>
</div>
diff --git a/web/app/components/pricing/MarketingPricing.tsx b/web/app/components/pricing/MarketingPricing.tsx
index 6703ef43b..70450d8de 100644
--- a/web/app/components/pricing/MarketingPricing.tsx
+++ b/web/app/components/pricing/MarketingPricing.tsx
@@ -179,7 +179,13 @@ const MarketingPricing = ({
) : null}
<Switch
checked={billingFrequency === BillingFrequency.yearly}
- onChange={() => {}}
+ onChange={() =>
+ setBillingFrequency(
+ billingFrequency === BillingFrequency.yearly
+ ? BillingFrequency.monthly
+ : BillingFrequency.yearly,
+ )
+ }
/>
</button>
</div>