Skip to content

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

Dont show upgrade survey if downgrade from team to pro (#30642)

Joshen Lim847453bf782a
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 6929f728c9e..76f834a19be 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -82,7 +82,7 @@ const PlanUpdateSidePanel = () => {
setSelectedTier(undefined)
onClose()
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
- setShowUpgradeSurvey(true)
+ if (planMeta?.change_type === 'upgrade') setShowUpgradeSurvey(true)
},
onError: (error) => {
toast.error(`Unable to update subscription: ${error.message}`)