You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Hold for payment 2021-09-07] Request a call - Phone number is filled in First Name box #4864
What I understood is, If first name is same as phone number then we have to keep first name empty within form. So I will suggest to modify constructor for src/pages/RequestCallPage.js file.
How It works: Within constructor we have to check if first name is same as phone number then set first name empty within form, otherwise keep first name as it is.
Constructor code will looks like as under once modified as per my suggestion. I will prefer this way so we don't need to change code any other place.
If my solution considered then kindly accept my Upwork proposal. Once proposal accepted, I will do final testing and submit pull request within 2 days.
@thesahindia I like your idea, it's short and sweet and works quite well 👍 I just assigned this task to you, please submit a PR when you have a chance :)
@Santhosh-Sellavel If a bug surfaces in the future and we end up needing to use those props, your proposal will be amazing 👍 However, my thought on this was that @thesahindia 's was so nice and simple (and worked when I tested) that it makes the most sense to do a one-line fix.
changed the title [-]Request a call - Phone number is filled in First Name box[/-][+][Hold for payment 2021-09-07] Request a call - Phone number is filled in First Name box[/+]on Sep 6, 2021
Activity
MelvinBot commentedon Aug 26, 2021
Triggered auto assignment to @Julesssss (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.thesahindia commentedon Aug 26, 2021
Proposal
Need to get rid of the
sms domainin this function while checking if the login is same as displayNameSanthosh-Sellavel commentedon Aug 27, 2021
Proposal
I found that we have firstName and lastName as separate values in

prop.myPersonalDetailsif set already.Only if has these properties, we need to set them here otherwise leave them blank,
App/src/pages/RequestCallPage.js
Lines 68 to 71 in ae38f1b
This function below is unnecessary,
App/src/pages/RequestCallPage.js
Line 129 in ae38f1b
we could use lodashGet to retrieve firstName & lastName, from myPersonalDetailsProp or else give default ''.
I think we need to update this also, https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/personalDetailsPropType.js
MelvinBot commentedon Aug 27, 2021
Triggered auto assignment to @arielgreen (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.arielgreen commentedon Aug 27, 2021
Posted to Upwork here.
2 remaining items
MelvinBot commentedon Aug 27, 2021
Triggered auto assignment to @Beamanator (
Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.PrashantMangukiya commentedon Aug 29, 2021
Proposed Solution
What I understood is, If first name is same as phone number then we have to keep first name empty within form. So I will suggest to modify constructor for src/pages/RequestCallPage.js file.
How It works: Within constructor we have to check if first name is same as phone number then set first name empty within form, otherwise keep first name as it is.
Constructor code will looks like as under once modified as per my suggestion. I will prefer this way so we don't need to change code any other place.
If my solution considered then kindly accept my Upwork proposal. Once proposal accepted, I will do final testing and submit pull request within 2 days.
My Upwork profile: https://www.upwork.com/freelancers/~01c718889ed7821f82
Best Regards,
Prashant Mangukiya
Beamanator commentedon Aug 30, 2021
@thesahindia I like your idea, it's short and sweet and works quite well 👍 I just assigned this task to you, please submit a PR when you have a chance :)
Santhosh-Sellavel commentedon Aug 30, 2021
@Beamanator Just for clarification, I hope answer helps me in future my proposals.
As I said in my proposal #4864 (comment)
When we have the values we need in props itself why we need to do the spliting from
displayName.Beamanator commentedon Aug 30, 2021
@Santhosh-Sellavel If a bug surfaces in the future and we end up needing to use those props, your proposal will be amazing 👍 However, my thought on this was that @thesahindia 's was so nice and simple (and worked when I tested) that it makes the most sense to do a one-line fix.
isagoico commentedon Aug 30, 2021
Issue reproducible during KI retests
botify commentedon Aug 30, 2021
🚀 Deployed to staging by @Beamanator in version: 1.0.88-3 🚀
botify commentedon Sep 1, 2021
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀
isagoico commentedon Sep 5, 2021
Issue not reproducible during KI retests (Fixed 🎉)
[-]Request a call - Phone number is filled in First Name box[/-][+][Hold for payment 2021-09-07] Request a call - Phone number is filled in First Name box[/+]arielgreen commentedon Sep 7, 2021
Paid! Thanks for your work on this, @thesahindia.