-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2023-12-20] [$500] Web - Split Scan - Console error shows up when clicking Split on empty split action menu #32809
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @mountiny ( |
Job added to Upwork: https://www.upwork.com/jobs/~014fa32ba034ba77de |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik ( |
Most likely related to the refactor #28618 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Err occur when clicking on empty split action menu What is the root cause of that problem?we are not safely accessing the trasnactionID:
What changes do you think we should make in order to solve the problem?use lodash get
|
I'll take this and look into it this morning. |
@abzokhattab that solution is not enough as there are other properties required which cause console error |
Thanks Tim, I have to head out earlier tonight |
Maybe this will help const onConfirm = useCallback(
() =>
{
if (!props.draftTransaction) {
Navigation.dismissModal(reportID);
return;
}
IOU.completeSplitBill(reportID, reportAction, props.draftTransaction, props.session.accountID, props.session.email)
},
[reportID, reportAction, props.draftTransaction, props.session.accountID, props.session.email],
); |
@mountiny Please remove |
We should show error on the form if the Amount and merchant have not been updated |
I think disabling the button will be more correct |
ah yeah, whatever our |
Sorry, we should show error according to |
Sure, writing it now |
ProposalPlease re-state the problem that we are trying to solve in this issue.A console error is shown when pressing the Split button on a split bill details page with a receipt and empty required fields. What is the root cause of that problem?When we press the split button, we call App/src/components/MoneyRequestConfirmationList.js Lines 461 to 477 in a16df0d
If the split transaction data is empty, it should show a required fields error ( App/src/pages/iou/SplitBillDetailsPage.js Lines 107 to 110 in a16df0d
In Line 1690 in a16df0d
App/src/libs/TransactionUtils.ts Lines 153 to 155 in a16df0d
App/src/libs/TransactionUtils.ts Lines 145 to 147 in a16df0d
The App/src/pages/iou/SplitBillDetailsPage.js Line 146 in a16df0d
But Before, we fall back to What changes do you think we should make in order to solve the problem?Fall back to In SplitBillDetailsPage App/src/pages/iou/SplitBillDetailsPage.js Line 146 in a16df0d
transaction={isEditingSplitBill ? props.draftTransaction || props.transaction : props.transaction} |
Thanks, that looks great. Assigning to you now. |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.11-25 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 2023-12-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
@shubham1206agra friendly reminder on the checklist so that we can pay this out tomorrow. |
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:
|
Great. @shubham1206agra can you also accept the upwork offer linked above? |
Done |
All paid. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v1.4.11-1
Reproducible in staging?: y
Reproducible in production?: n
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
No console error shows up.
Actual Result:
Console error shows up.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6308982_1702302781697.bandicam_2023-12-11_20-01-06-062__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: