Skip to content

Commit

Permalink
Stepper: Don't record user registration if signing up with existing s…
Browse files Browse the repository at this point in the history
…ocial account (#96342)
  • Loading branch information
escapemanuele authored Nov 13, 2024
1 parent fdae88f commit bdb54b6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions client/lib/signup/api/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ export async function createAccount( {
let isNewAccountCreated = true;
if ( service && response && 'created_account' in response && ! response?.created_account ) {
isNewAccountCreated = false;
}

const username = response?.signup_sandbox_username || response?.username;
} else {
const username = response?.signup_sandbox_username || response?.username;

recordNewAccountCreation( {
response,
flowName,
username,
signupType: service ? 'social' : 'default',
} );
recordNewAccountCreation( {
response,
flowName,
username,
signupType: service ? 'social' : 'default',
} );
}

return { ...response, isNewAccountCreated };
}

0 comments on commit bdb54b6

Please sign in to comment.