Skip to content

Commit a272839

Browse files
committed
fix(billing): scope weekly refresh row seat scaling to organization billing
1 parent 9a0bc96 commit a272839

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/components/billing

apps/sim/app/workspace/[workspaceId]/settings/components/billing/billing.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ export function Billing({ scope, organizationId, creditUsageHref }: BillingProps
440440
: subscriptionData?.data?.cancelAtPeriodEnd === true
441441

442442
const weeklyRefreshDollars =
443-
getPlanWeeklyRefreshDollars(subscription.plan) * (subscription.seats || 1)
443+
getPlanWeeklyRefreshDollars(subscription.plan) *
444+
(isOrganizationScope ? subscription.seats || 1 : 1)
444445

445446
const invoices = (invoicesData?.invoices ?? []).map((invoice) => ({
446447
id: invoice.id,

0 commit comments

Comments
 (0)