Skip to content

fix: include orgs with a paid plan in billing dropdown#2237

Merged
gary149 merged 1 commit intomainfrom
charlie/fix-billing-org-plan-filter
Apr 15, 2026
Merged

fix: include orgs with a paid plan in billing dropdown#2237
gary149 merged 1 commit intomainfrom
charlie/fix-billing-org-plan-filter

Conversation

@Charlie-Boyer
Copy link
Copy Markdown
Contributor

Problem

The billing org dropdown in HuggingChat settings filters orgs on canPay === true only. Orgs on a Team or Enterprise plan that haven't purchased additional prepaid credits have canPay = false, so they don't appear in the dropdown even though their plan includes monthly inference credits ($2/seat/month).

The Hub's inference widget uses org.plan || canPay !== false, so those same orgs show up fine there.

Fix

Include orgs that have a paid plan (org.plan is truthy) in the billing orgs filter, matching the Hub's behavior. The plan field is already returned by /oauth/userinfo.

The billing org filter only checked canPay, so Team/Enterprise orgs
without prepaid credits were hidden. The Hub inference widget uses
org.plan || canPay, and the plan field is already returned by
/oauth/userinfo. Match that behavior here.
@Charlie-Boyer Charlie-Boyer requested a review from gary149 April 15, 2026 08:51
@Charlie-Boyer Charlie-Boyer self-assigned this Apr 15, 2026
@gary149 gary149 merged commit e4abbbf into main Apr 15, 2026
5 of 6 checks passed
@gary149 gary149 deleted the charlie/fix-billing-org-plan-filter branch April 15, 2026 12:58
@gary149
Copy link
Copy Markdown
Collaborator

gary149 commented Apr 15, 2026

thanks (didn't test if you want to report if it's fixed in prod)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants