From 4875d54a562c88cc71dac4eab87ca4156b057c2e Mon Sep 17 00:00:00 2001 From: Aneesh Devasthale Date: Fri, 13 Dec 2024 17:30:45 -0800 Subject: [PATCH] Plans Grid: fix simplified display behaviour --- client/my-sites/plans-features-main/index.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/my-sites/plans-features-main/index.tsx b/client/my-sites/plans-features-main/index.tsx index 7f352c37a3096..8239561be179f 100644 --- a/client/my-sites/plans-features-main/index.tsx +++ b/client/my-sites/plans-features-main/index.tsx @@ -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', {