-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Username only updated on first address and when there is 1 address #2932
Username only updated on first address and when there is 1 address #2932
Conversation
8e96b36
to
5dab7d9
Compare
5dab7d9
to
affd362
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work well, just have two instances of single quotes that need to be doubled.
server/methods/accounts/accounts.js
Outdated
}); | ||
}; | ||
|
||
if (!account.name || _.get(account, 'profile.addressBook.length', 0) === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quotes on strings.
server/methods/accounts/accounts.js
Outdated
}); | ||
}; | ||
// update the name when there is no name or the user updated his only shipping address | ||
if (!account.name || _.get(account, 'profile.addressBook.length', 0) <= 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quotes.
@mikemurray can you fix those quote issues in this PR so we can merge? |
Fix for #2812
Username not updated everytime the billing address is changed. It is only updated when
To test the PR
Guest
to the name you use inBilling Address