Skip to content

Commit

Permalink
Revert "Onboarding: Remove the onboarding specific check for subheader"
Browse files Browse the repository at this point in the history
This reverts commit 560b2e1.
  • Loading branch information
spen committed Jun 5, 2019
1 parent 5d2338a commit cdace2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/signup/steps/domains/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cdace2e

Please sign in to comment.