mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-23 13:46:11 +00:00
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:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user