Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Show switch tier button only for base tier
Jakub Novakd480f580033e
diff --git a/apps/docs/src/app/pricing/SwitchTearButton.tsx b/apps/docs/src/app/pricing/SwitchTearButton.tsxindex fcdb95167..772206335 100644--- a/apps/docs/src/app/pricing/SwitchTearButton.tsx+++ b/apps/docs/src/app/pricing/SwitchTearButton.tsx@@ -51,7 +51,9 @@ function SwitchTearButton({}}- if (!user || !billingApiURL || user.teams[0].tier === tierID) {+ // Only show the button if the user is on the base_v1 tier.+ // Teams can have custom tiers. We only want the button to users on the free tier.+ if (!user || !billingApiURL || user.teams[0].tier !== 'base_v1') {return}