Skip to content

Commit

Permalink
Plans Grid: fix simplified display behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshd16 committed Dec 14, 2024
1 parent c172fd4 commit 4875d54
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/my-sites/plans-features-main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,14 @@ const PlansFeaturesMain = ( {
const showEscapeHatch =
intentFromSiteMeta.intent && ! isInSignup && defaultWpcomPlansIntent !== intent;

const isTargetedSignupFlow = isInSignup && flowName === 'onboarding';
const isTargetedAdminIntent = ! isInSignup && intent === 'plans-default-wpcom';
const showSimplifiedFeatures = isTargetedSignupFlow || isTargetedAdminIntent;
/**
* showSimplifiedFeatures should be true always and this variable should be removed.
* It exists temporarily till the flows with the following intents are removed.
*/
const showSimplifiedFeatures = ! (
intent &&
[ 'plans-newsletter', 'plans-link-in-bio', 'plans-blog-onboarding' ].includes( intent )
);

const [ isLoadingHideLowerTierPlansExperiment, hideLowerTierPlansExperimentAssignment ] =
useExperiment( 'calypso_pricing_grid_hide_lower_tier_plans', {
Expand Down

0 comments on commit 4875d54

Please sign in to comment.