Skip to content

fix(billing): Skip missing plan buckets#112416

Closed
brendanhsentry wants to merge 2 commits intomasterfrom
brendanhsentry/fix/skip-missing-plan-buckets
Closed

fix(billing): Skip missing plan buckets#112416
brendanhsentry wants to merge 2 commits intomasterfrom
brendanhsentry/fix/skip-missing-plan-buckets

Conversation

@brendanhsentry
Copy link
Copy Markdown
Member

@brendanhsentry brendanhsentry commented Apr 7, 2026

Instead of raising an error in getBucket we should just skip categories if it's not part of the plan's categories.

FIXES JAVASCRIPT-38NB

Return null from getBucket when plan data is missing so billing views and
checkout flows can keep rendering. Fall back to zero-priced bucket values
for unsupported categories and cover the regression with focused tests.

Co-Authored-By: GPT-5.4 <noreply@example.com>
Made-with: Cursor
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 7, 2026
Keep the billing null-bucket fallback type-safe so frontend type checks pass
when unsupported plan categories are skipped.

Co-Authored-By: GPT-5.4 <noreply@example.com>
Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant