Skip to content

Commit

Permalink
change logic for displaying auto renew toggle in subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
flepches authored and MargeBot committed Feb 29, 2024
1 parent 391f2a2 commit d2df9c9
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/shared/lib/helpers/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,31 +135,6 @@ export const hasPassPro = (subscription: MaybeFreeSubscription) => hasSomePlan(s
export const hasPassBusiness = (subscription: MaybeFreeSubscription) => hasSomePlan(subscription, PASS_BUSINESS);
export const hasFree = (subscription: MaybeFreeSubscription) => (subscription?.Plans || []).length === 0;

export const paidPlanList = [
hasVisionary,
hasNewVisionary,
hasVPN,
hasVPN2024,
hasVPNPassBundle,
hasMail,
hasMailPro,
hasDrive,
hasDrivePro,
hasPassPlus,
hasEnterprise,
hasBundle,
hasBundlePro,
hasMailPlus,
hasMailProfessional,
hasVpnBasic,
hasVpnPlus,
hasFamily,
hasVpnBusiness,
hasVpnPro,
hasPassPro,
hasPassBusiness,
];

export const getUpgradedPlan = (subscription: Subscription | undefined, app: ProductParam) => {
if (hasFree(subscription)) {
switch (app) {
Expand Down

0 comments on commit d2df9c9

Please sign in to comment.