forcedotcom / commerce-on-lightning

An SFDX Plugin to setup a B2C or B2B Store
BSD 3-Clause "New" or "Revised" License
65 stars 71 forks source link

B2C Store Creation Buyer Email error #279

Open avaHitesh-github opened 8 months ago

avaHitesh-github commented 8 months ago

When creating a buyer user email from current os's user name and adding buyer email from command, the replace function only replaces the first instance only and not all of them. So when Os's username is: abc@xyz.com and buyer user email from command is: buyyer@gmail.com

the final email becomes abcATxyz.com+buyyer@gmail.com@salesforce.com

and gives the error that invalid email address

avaHitesh-github commented 8 months ago

Created a PR for this fix: https://github.com/forcedotcom/commerce-on-lightning/pull/280

avaHitesh-github commented 8 months ago

@tarcang created the hotfix to main: #281