Skip to content

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

chore: adjust copy for partner billed org when up/downgrading plan [GEN-8952] (#26361)

Thomas4e111f8f4d8f
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 84bd31f81f4..f5de33e2e5a 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -547,10 +547,15 @@ const PlanUpdateSidePanel = () => {
<div className="py-4 space-y-2">
<p className="text-sm">
This organization is billed through our partner{' '}
- {billingPartnerLabel(subscription?.billing_partner)} and you will be charged by them
- directly.
+ {billingPartnerLabel(billingPartner)}.{' '}
+ {billingPartner === 'aws' ? (
+ <>The organization's credit balance will be decreased accordingly.</>
+ ) : (
+ <>You will be charged by them directly.</>
+ )}
</p>
- {subscriptionPreview?.billed_via_partner &&
+ {billingViaPartner &&
+ billingPartner === 'fly' &&
subscriptionPreview?.plan_change_type === 'downgrade' && (
<p className="text-sm">
Your organization will be downgraded at the end of your current billing cycle.