Skip to content

Commit

Permalink
We don't need to carry title and tagline through explicitly, they've …
Browse files Browse the repository at this point in the history
…already been submitted.
  • Loading branch information
sixhours committed Feb 16, 2022
1 parent 4ca31bc commit 3205842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client/signup/config/steps-pure.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ export function generateSteps( {

'store-features': {
stepName: 'store-features',
dependencies: [ 'siteSlug', 'siteTitle', 'tagline' ],
dependencies: [ 'siteSlug' ],
apiRequestFunction: setStoreFeatures,
providesDependencies: [ 'isFSEActive', 'siteTitle', 'tagline', 'storeType' ],
optionalDependencies: [ 'isFSEActive', 'siteTitle', 'tagline', 'storeType' ],
providesDependencies: [ 'isFSEActive', 'storeType' ],
optionalDependencies: [ 'isFSEActive', 'storeType' ],
},

'starting-point': {
Expand Down
6 changes: 2 additions & 4 deletions client/signup/steps/store-features/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function StoreFeaturesStep( props: Props ): React.ReactNode {
const translate = useTranslate();
const headerText = translate( 'Set up your store' );
const subHeaderText = translate( 'Let’s create a website that suits your needs.' );
const { siteSlug, siteTitle, tagline } = props.signupDependencies;
const { siteSlug } = props.signupDependencies;
const { stepName, goToNextStep } = props;

const sitePlanSlug = useSelector( ( state ) => getSite( state, siteSlug )?.plan?.product_slug );
Expand Down Expand Up @@ -153,9 +153,7 @@ export default function StoreFeaturesStep( props: Props ): React.ReactNode {
} );
switch ( selectedOption ) {
case 'power':
dispatch(
submitSignupStep( { stepName }, { siteTitle, tagline, storeType: 'woocommerce' } )
);
dispatch( submitSignupStep( { stepName }, { storeType: 'woocommerce' } ) );
break;

case 'simple': {
Expand Down

0 comments on commit 3205842

Please sign in to comment.