Skip to content

Commit

Permalink
Add /wordpress-hosting LP slug to the isDevAccount conditional (#94424)
Browse files Browse the repository at this point in the history
  • Loading branch information
niranjan-uma-shankar authored Sep 12, 2024
1 parent cfc22ca commit f08af7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/blocks/signup-form/passwordless.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class PasswordlessSignupForm extends Component {
password: '',
};
const { flowName, queryArgs = {} } = this.props;
const isDevAccount = queryArgs.ref === 'hosting-lp' || queryArgs.ref === 'developer-lp';
const devAccountLandingPageRefs = [ 'hosting-lp', 'developer-lp', 'wordpress-hosting-dev-lp' ];
const isDevAccount = devAccountLandingPageRefs.includes( queryArgs.ref );

// If not in a flow, submit the form as a standard signup form.
// Since it is a passwordless form, we don't need to submit a password.
Expand Down
3 changes: 2 additions & 1 deletion client/blocks/signup-form/social.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ class SocialSignupForm extends Component {
export default connect(
( state ) => {
const query = getCurrentQueryArguments( state );
const isDevAccount = query?.ref === 'hosting-lp' || query?.ref === 'developer-lp';
const devAccountLandingPageRefs = [ 'hosting-lp', 'developer-lp', 'wordpress-hosting-dev-lp' ];
const isDevAccount = devAccountLandingPageRefs.includes( query?.ref );

return {
recordTracksEvent: recordTracks,
Expand Down

0 comments on commit f08af7a

Please sign in to comment.