Skip to content

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

Update studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx

Terry Sutton1f74fdc9c6bd
diff --git a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx
index f7e58f9eb7e..9296e821a56 100644
--- a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx
@@ -42,7 +42,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {
const currentPlan = subscription?.plan
const isUsageBillingEnabled = subscription?.usage_billing_enabled
const [usageFees, fixedFees] = partition(upcomingInvoice?.lines ?? [], (item) => item.usage_based)
- const totalUsageFees = +usageFees.reduce((a, b) => a + b.amount, 0).toFixed(2)
+ const totalUsageFees = Number(usageFees.reduce((a, b) => a + b.amount, 0).toFixed(2))
const hasExceededAnyLimits =
isUsageBillingEnabled === false &&