From cdace2ecaf6b2aba3fc3617720879abbb5100251 Mon Sep 17 00:00:00 2001 From: Spen Taylor Date: Tue, 4 Jun 2019 11:29:49 +0100 Subject: [PATCH] Revert "Onboarding: Remove the onboarding specific check for subheader" This reverts commit 560b2e1b84f815fd21c6e08b3afbe3b1d9b3790d. --- client/signup/steps/domains/index.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/signup/steps/domains/index.jsx b/client/signup/steps/domains/index.jsx index 510cf4d4d4cc4..04c8cb769c1dd 100644 --- a/client/signup/steps/domains/index.jsx +++ b/client/signup/steps/domains/index.jsx @@ -6,7 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; -import { defer, endsWith, get, isEmpty } from 'lodash'; +import { defer, endsWith, get, includes, isEmpty } from 'lodash'; import { localize, getLocaleSlug } from 'i18n-calypso'; /** @@ -517,9 +517,11 @@ class DomainsStep extends React.Component { }; getSubHeaderText() { - const { siteType, translate } = this.props; + const { flowName, siteType, translate } = this.props; const onboardingSubHeaderCopy = - siteType && getSiteTypePropertyValue( 'slug', siteType, 'domainsStepSubheader' ); + siteType && + includes( [ 'onboarding-for-business', 'onboarding' ], flowName ) && + getSiteTypePropertyValue( 'slug', siteType, 'domainsStepSubheader' ); if ( onboardingSubHeaderCopy ) { return onboardingSubHeaderCopy;