Skip to content

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

fix(upcomingInvoice): do not manually subtract credits (#46116)

Julian Domkec414146572d8
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
index 653332de04d..9784ed2574c 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx
@@ -455,7 +455,7 @@ function ComputeLineItem({
const discountedComputeCosts = Math.max(
0,
- computeItems.reduce((prev, cur) => prev + (cur.amount ?? 0), 0) + (computeCredits?.amount ?? 0)
+ computeItems.reduce((prev, cur) => prev + (cur.amount ?? 0), 0)
)
if (!computeItems.length) return null