fix: the plan card counted no seats

It filtered on `org_owned`, but the GUI annotates members to `orgOwned` --
so the count was always zero and the card read "billed for 0 accounts" beside
an accounts table saying two.

Uses `membersBillingSummary` now, the same count the table shows, which also
excludes suspended seats: they stop costing a per-account charge, which the
naive filter would have billed for.
This commit is contained in:
Juan Castro
2026-09-10 18:32:31 -04:00
parent fa36f2e3cf
commit 2083ef47c0
+3 -1
View File
@@ -177,7 +177,9 @@ const renderMemberView = () => {
const renderPlan = () => teamPlanHtml({
plan: state.plan,
seats: state.members.filter(m => m.org_owned).length,
// The same count the accounts table shows: suspended seats are excluded,
// because they stop costing a per-account charge.
seats: membersBillingSummary(annotateMembers(state.members, state.audit)).billed,
canBuy: window.team_billing_ui === true,
});