-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] PR27257-mWeb-Login-Typing phone number without country code, country code not added &SMSnot received #28805
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017eea02da3f18b41e |
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
Found when validating PR #27257 |
as per this is not a bug https://expensify.slack.com/archives/C049HHMV9SM/p1690373508303109 by default +1 country code added in the background. |
Does expensify intend to append country codes for the numbers of all countries ? the phone number is parsed and the country code +1 is appended to all the numbers. and on the codeValidate form formatted phone number is displayed. function formatPhoneNumber(number: string): string {
if (!number) {
return '';
}
const numberWithoutSMSDomain = Str.removeSMSDomain(number);
const parsedPhoneNumber = parsePhoneNumber(numberWithoutSMSDomain);
// return the string untouched if it's not a phone number
if (!parsedPhoneNumber.valid) {
if (parsedPhoneNumber.number?.international) {
return parsedPhoneNumber.number.international;
}
return numberWithoutSMSDomain;
}
const regionCode = parsedPhoneNumber.countryCode;
if (regionCode === countryCodeByIP) {
return parsedPhoneNumber.number.national;
}
return parsedPhoneNumber.number.international;
} since +1 is appended to all the numbers, it returns formatted number without country code. it happens for all the us numbers. whether you enter country code in input or not. the screen recording in the bug report is an edge case, where appending +1 to number, results in a valid number on passing to parsePhoneNumber even though it's not a us number. if the intended behaviour is to append country codes to codes of all nations. |
@narefyev91, @zanyrenney Huh... This is 4 days overdue. Who can take care of this? |
Closing based on #28805 (comment) |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Typing phone number without country code, country code must be added to phone number& sms must be received.
Actual Result:
Typing phone number without country code, country code not added to phone number& sms not received.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.77-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6224449_1696410642163.1696400529881_2023-10-04_11-47-13.mp4
Bug6224449_1696410642246.anlogin.mp4
Bug6224449_1696410434005.without_country_mweb.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: