Skip to content

Commit a8e86a8

Browse files
author
MargeBot
committed
Merge branch 'P2-668-fix-pass-family-pricing' into 'main'
Fix Pass Family pricing in OfferPrice component See merge request web/clients!16917
2 parents de75c19 + de0812b commit a8e86a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/payments/core/price-helpers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export function getPricePerCycle(plan: Plan | undefined, cycle: CYCLE) {
3939
}
4040

4141
export function isMultiUserPersonalPlan(plan: Plan) {
42-
// even though Duo, Family and Visionary plans can have up to 6 users in the org,
42+
// even though Duo, Family, Visionary, and Pass Family plans can have up to 6 users in the org,
4343
// for the price displaying purposes we count it as 1 member.
44-
return plan.Name === PLANS.DUO || plan.Name === PLANS.FAMILY || plan.Name === PLANS.VISIONARY;
44+
const plans = [PLANS.DUO, PLANS.FAMILY, PLANS.VISIONARY, PLANS.PASS_FAMILY];
45+
return plans.includes(plan.Name as PLANS);
4546
}
4647

4748
export function getPricePerMember(plan: Plan, cycle: CYCLE): number {

0 commit comments

Comments
 (0)