From ec42e0b85aa9cb1cf7cf0ef18ab3d3c40932b639 Mon Sep 17 00:00:00 2001 From: Miroslav Mitev Date: Fri, 17 Jan 2025 18:09:55 +0200 Subject: [PATCH] Remove back button from email upsell screen when not purchasing a domain --- .../email-providers-comparison/stacked/index.tsx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/client/my-sites/email/email-providers-comparison/stacked/index.tsx b/client/my-sites/email/email-providers-comparison/stacked/index.tsx index ccd70adcf538c..56438d7808a85 100644 --- a/client/my-sites/email/email-providers-comparison/stacked/index.tsx +++ b/client/my-sites/email/email-providers-comparison/stacked/index.tsx @@ -37,10 +37,7 @@ import { IntervalLength } from 'calypso/my-sites/email/email-providers-compariso import EmailUpsellNavigation from 'calypso/my-sites/email/email-providers-comparison/stacked/provider-cards/email-upsell-navigation'; import GoogleWorkspaceCard from 'calypso/my-sites/email/email-providers-comparison/stacked/provider-cards/google-workspace-card'; import ProfessionalEmailCard from 'calypso/my-sites/email/email-providers-comparison/stacked/provider-cards/professional-email-card'; -import { - getEmailManagementPath, - getEmailInDepthComparisonPath, -} from 'calypso/my-sites/email/paths'; +import { getEmailInDepthComparisonPath } from 'calypso/my-sites/email/paths'; import { useDispatch, useSelector } from 'calypso/state'; import { recordTracksEvent } from 'calypso/state/analytics/actions'; import { getProductBySlug } from 'calypso/state/products-list/selectors'; @@ -251,14 +248,10 @@ const EmailProvidersStackedComparison = ( { { ! isDomainInCart && selectedSite && } - { ! hideNavigation && ( + { ! hideNavigation && isDomainInCart && ( ) }