feat: post-PR-159 UI cleanup — sidebar IA + account redesign #160
@@ -406,7 +406,12 @@ export function AccountSettingsPage() {
|
||||
current={usage.session_count_this_month}
|
||||
max={limits.max_sessions_per_month}
|
||||
/>
|
||||
<UsageRow label="Seats" current={usage.user_count} max={limits.max_users} />
|
||||
{(() => {
|
||||
const seatCount = usage.user_count ?? (isAccountOwner ? members.length : null)
|
||||
return seatCount !== null ? (
|
||||
<UsageRow label="Seats" current={seatCount} max={limits.max_users} />
|
||||
) : null
|
||||
})()}
|
||||
</div>
|
||||
) : (
|
||||
<p className="text-sm text-muted-foreground">Plan limits unavailable.</p>
|
||||
|
||||
Reference in New Issue
Block a user