-
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
[HOLD for payment 2024-10-10] [$250] Bank Account - "Please provide a valid email" error is not dismissed when navigating back #49129
Comments
Triggered auto assignment to @anmurali ( |
@anmurali FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-09-12 19:20:18 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The OP is incorrect. Should be "Please provide a valid website" error is shown even after navigating back to other pages. What is the root cause of that problem?Offending PR: #48731 We save the App/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx Lines 62 to 64 in 2310966
But the default value might either be a website prefix placeholder App/src/libs/BankAccountUtils.ts Lines 5 to 7 in 6c5125d
If What changes do you think we should make in order to solve the problem?
We should early return in the above effects if |
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@anmurali Can you check this? |
@anmurali Eep! 4 days overdue now. Issues have feelings too... |
@anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@anmurali 10 days overdue. I'm getting more depressed than Marvin. |
Job added to Upwork: https://www.upwork.com/jobs/~021838748303382636901 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf ( |
@anmurali @allgandalf this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
When we open the website page for the first time we call a App/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx Lines 62 to 64 in 2310966
The default value for a public domain is Now Everytime we go back and click on What changes do you think we should make in order to solve the problem?The This way first we validate if the entered website is correctly formatted in our validate function here and then only call Also the default value shouldn't get affected because we set it directly here The updated code would be (We will remove useEffect completely as that is not required here): --- a/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx
+++ b/src/pages/ReimbursementAccount/BusinessInfo/substeps/WebsiteBusiness.tsx
@@ -55,13 +55,15 @@ function WebsiteBusiness({reimbursementAccount, user, session, onNext, isEditing
);
const handleSubmit = useReimbursementAccountStepFormSubmit({
fieldIds: STEP_FIELDS,
- onNext,
+ onNext: (values) => {
+
+
+ BankAccounts.addBusinessWebsiteForDraft(values?.website);
+ onNext();
+ },
shouldSaveDraft: isEditing,
});
- useEffect(() => {
- BankAccounts.addBusinessWebsiteForDraft(defaultCompanyWebsite);
- }, [defaultCompanyWebsite]);
return (
<FormProvider What alternative solutions did you explore? (Optional) |
@anmurali, @allgandalf Huh... This is 4 days overdue. Who can take care of this? |
Thanks for the proposals everyone! 🙏 ♻️ @gijoe0295 and @twilight294 both of you have pointed out the correct
So, lets go with @twilight294's proposal here 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.43-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-10. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
That bug was for |
Regression Test Proposal
Do we agree 👍 or 👎 |
Can someone please pay me out, the payment was supposed to happen yesterday, my upwork is : https://www.upwork.com/freelancers/~01047e1bc60ea55d80 |
Contributor: @twilight294 paid $250 via Upwork Apologies for the delay @twilight294 , can you please apply for the job, then we'll hire and pay? Thx |
Sorry, I don't have enough connects on upwork to apply, is there a way to hire me directly @mallenexpensify ? |
hello @mallenexpensify , reminder since it was weekend last time i texted ^ |
@anmurali, @blimpich, @allgandalf, @twilight294 Huh... This is 4 days overdue. Who can take care of this? |
Not overdue sir melvin! 🙇 |
hello @mallenexpensify , can you please help me out with #49129 (comment) |
Apologies @twilight294 , I just invited you to the job, can you accept then I'll pay? |
Thanks for the invite @mallenexpensify , I don't know what is happening, but upwork never allocated me connects : |
I think it's hard for newer freelancers in Upwork. And, for working with us, once you've been hired for 1 job it's a LOT easier to find and hire you for future jobs. Can you please accept the job and reply here once you have? |
I accepted the offer, thank you so much, Looking forward to working on more issues |
Thanks @twilight294 , you've been paid. Payment breakdown updated above too. Test case created too 🚀 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.33-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
"Please provide a valid email" error is not shown
Actual Result:
"Please provide a valid email" error is shown even after navigating back to other pages.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6601153_1726153889912.12.09.2024_17.40.24_REC.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: