Skip to content

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

fix: show plan name on empty orgs (#45247)

Ignacio Dobronich4763ac837413
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
index e6479ed8ba4..7509cba031f 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
@@ -523,21 +523,23 @@ export const SubscriptionPlanUpdateDialog = ({
const content = (
<>
+ {planItem && (
+ <TableRow className="text-foreground-light">
+ <TableCell className="!py-2 px-0">
+ {planItem.description}
+ </TableCell>
+ <TableCell
+ className="text-right py-2 px-0"
+ translate="no"
+ >
+ {formatCurrency(planItem.total_price)}
+ </TableCell>
+ </TableRow>
+ )}
+
{/* Combined projects section */}
{allProjects.length > 0 && (
<>
- <TableRow className="text-foreground-light">
- <TableCell className="!py-2 px-0">
- {planItem?.description}
- </TableCell>
- <TableCell
- className="text-right py-2 px-0"
- translate="no"
- >
- {formatCurrency(planItem?.total_price)}
- </TableCell>
- </TableRow>
-
<TableRow className="text-foreground-light">
<TableCell className="!py-2 px-0 flex items-center gap-1">
<span>Compute</span>