feat(clerk-js,localizations,react,shared,ui): Add support for org invite to checkout flow#8511
feat(clerk-js,localizations,react,shared,ui): Add support for org invite to checkout flow#8511dstaley wants to merge 9 commits into
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
||
| if (plans.length === 0) { | ||
| handleError(err, [], () => | ||
| card.setError(t(localizationKeys('unstable__errors.insufficient_seats_contact_support'))), |
There was a problem hiding this comment.
I think this getPlans call should have its own try catch block, otherwise an error here will probably break out of the switch.
| fee: price.fee ? billingMoneyAmountFromJSON(price.fee) : null, | ||
| annualMonthlyFee: price.annual_monthly_fee ? billingMoneyAmountFromJSON(price.annual_monthly_fee) : null, | ||
| isDefault: price.is_default, | ||
| unitPrices: data.unit_prices?.map(billingUnitPriceFromJSON), |
There was a problem hiding this comment.
this should be price.unit_prices, yeah?
Description
This PR updates the invite members flow to support automatic transition to checkout when the current plan and price supports the desired total number of seats.
🔍 Preview
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
…t flow