Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(billing): Hide promotion code for hobby plan users (#9286)

Michael Fröhlichea71c40ecbba
diff --git a/web/src/ee/features/billing/components/BillingDiscountView.tsx b/web/src/ee/features/billing/components/BillingDiscountView.tsx
index 9acbef308a..41f6d3d148 100644
--- a/web/src/ee/features/billing/components/BillingDiscountView.tsx
+++ b/web/src/ee/features/billing/components/BillingDiscountView.tsx
@@ -5,6 +5,13 @@ import { BillingDiscountCodeButton } from "@/src/ee/features/billing/components/
export const BillingDiscountView = () => {
const { organization } = useBillingInformation();
+
+ // Hide promotion code view and button when user is on Hobby Plan
+ // Hobby plan users don't have an active subscription ID
+ if (!organization?.cloudConfig?.stripe?.activeSubscriptionId) {
+ return null;
+ }
+
const shouldRenderComponent = Boolean(
organization?.cloudConfig?.stripe?.customerId,
);