Skip to content

Commit

Permalink
hide from plan comparison and don't include in upgrade link
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Mar 29, 2024
1 parent a5a27d5 commit 09fb698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/scenes/billing/PlanComparison.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export const PlanComparison = ({
)}
{includeAddons &&
product.addons?.map((addon) => {
// TODO: integrated_identities addon will show up here when we add a price plan. Make sure this can handle it.
return addon.tiered ? (
<tr key={addon.name + 'pricing-row'} className="PlanTable__tr__border">
<th scope="row">
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/scenes/billing/billing-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ export const getUpgradeProductLink = (
url += `${product.type}:${upgradeToPlanKey},`
if (includeAddons && product.addons?.length) {
for (const addon of product.addons) {
if (addon.plans?.[0]?.plan_key) {
if (
// TODO: this breaks if we support multiple plans per addon due to just grabbing the first plan
addon.plans?.[0]?.plan_key &&
!addon.inclusion_only
) {
url += `${addon.type}:${addon.plans[0].plan_key},`
}
}
Expand Down

0 comments on commit 09fb698

Please sign in to comment.