Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function NewContactMethodPage(props) {
const submitForm = useCallback(() => {
const phoneLogin = LoginUtils.appendCountryCode(LoginUtils.getPhoneNumberWithoutSpecialChars(login));
const parsedPhoneNumber = parsePhoneNumber(phoneLogin);
const userLogin = parsedPhoneNumber.possible ? parsedPhoneNumber.number.e164 : login;
const userLogin = parsedPhoneNumber.possible ? `${parsedPhoneNumber.number.e164}${CONST.SMS.DOMAIN}` : login;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: Maybe a comment in these cases could be helpful otherwise one wouldn't understand the significance of appending the domain here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we ended up fixing this twice at the same time. Either way, should leave both fixes? #18473 Even if they are redundant, it will make it more bullet proof? 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly bullet proof 😅 I have commented on the linked PR #18473 (comment).


// If this login already exists, just go back.
if (lodashGet(props.loginList, userLogin)) {
Expand Down