The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: do not show projected cost if not set (#41131)
Kevin Grüneberg28803acb3263
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsxindex 4b7feab3e57..d9405b96769 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx@@ -288,20 +288,23 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {{formatCurrency(upcomingInvoice?.amount_total) ?? '-'}</TableCell></TableRow>- <TableRow>- <TableCell className="font-medium py-2 px-0 flex items-center">- <span className="mr-2">Projected Costs</span>- <InfoTooltip className="max-w-xs">- Projected costs at the end of the billing cycle. Includes predictable costs- for Compute Hours, IPv4, Custom Domain and Point-In-Time-Recovery, but no- costs for metrics like MAU, storage or function invocations. Final amounts may- vary depending on your usage.- </InfoTooltip>- </TableCell>- <TableCell className="text-right font-medium py-2 px-0" translate="no">- {formatCurrency(upcomingInvoice?.amount_projected) ?? '-'}- </TableCell>- </TableRow>++ {upcomingInvoice?.amount_projected && (+ <TableRow>+ <TableCell className="font-medium py-2 px-0 flex items-center">+ <span className="mr-2">Projected Costs</span>+ <InfoTooltip className="max-w-xs">+ Projected costs at the end of the billing cycle. Includes predictable costs+ for Compute Hours, IPv4, Custom Domain and Point-In-Time-Recovery, but no+ costs for metrics like MAU, storage or function invocations. Final amounts+ may vary depending on your usage.+ </InfoTooltip>+ </TableCell>+ <TableCell className="text-right font-medium py-2 px-0" translate="no">+ {formatCurrency(upcomingInvoice.amount_projected) ?? '-'}+ </TableCell>+ </TableRow>+ )}</TableFooter></Table></div>