Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: disallow self-serve downgrade from Enterprise

Kevin Grünebergd13b811ba5e2
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx
index 8d647639dc0..c8379ae8f7f 100644
--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx
+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx
@@ -201,10 +201,8 @@ const PlanUpdateSidePanel = () => {
<Button
block
disabled={
- // no self-serve downgrades from team plan right now
- (plan.id !== PRICING_TIER_PRODUCT_IDS.TEAM &&
- ['enterprise'].includes(subscription?.plan?.id || '')) ||
- !canUpdateSubscription
+ // No self-serve downgrades from Enterprise
+ subscription?.plan?.id === 'enterprise' || !canUpdateSubscription
}
type={isDowngradeOption ? 'default' : 'primary'}
onClick={() => {