-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Request Money- App crashes when User B clicks on the Request Money description page #31893
Comments
Triggered auto assignment to @puneetlath ( |
Job added to Upwork: https://www.upwork.com/jobs/~010302bfe94f4fe40e |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when clicking on money request description url from the chat of user B What is the root cause of that problem?App/src/libs/Navigation/Navigation.js Line 179 in b6abdd4
in this line the What changes do you think we should make in order to solve the problem?change |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request Money- App crashes when User B clicks on the Request Money description page What is the root cause of that problem?The problem is with calling this useEffect again App/src/pages/iou/MoneyRequestDescriptionPage.js Lines 82 to 92 in d985a0e
And apparently when we leave the screen for the first time We are completely resetting the route store using goBack first time As a result on this line, we have empty lastRoute App/src/libs/Navigation/Navigation.js Line 179 in b6abdd4
What changes do you think we should make in order to solve the problem?As for me
App/src/libs/Navigation/Navigation.js Lines 179 to 182 in b6abdd4
!!! If we fix this bug like this, we will never see the description screen. Since we will constantly navigate back
What alternative solutions did you explore? (Optional)I think this solution is partly a bug.
|
Cannot find this issue on dev environment |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when User B clicks on the Request Money description page What is the root cause of that problem?The conditional check What changes do you think we should make in order to solve the problem?Change the code as follows: What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when User B clicks on the Request Money description page What is the root cause of that problem?App/src/libs/Navigation/Navigation.js Line 179 in b6abdd4
In this line, It crashes when accessing the What changes do you think we should make in order to solve the problem?It's simple to fix: we can replace the |
📣 @angelaflore! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
|
📣 @aoneahsan! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request Money- App crashes when User B clicks on the Request Money description page #31893 Action Performed:
I tried and was able to recreate this issue every time in my local development environment. What is the root cause of that problem?Uncaught TypeError: Cannot read properties of undefined (reading 'index') The code that is causing this issue is indeed.
But it has nothing to do with this reset in
as shown in the screenshot added below As you can see, the The main issue is the What changes do you think we should make in order to solve the problem?A simple workaround will be to change this line of code.
In this, check the property if it exists, then use the value otherwise undefined instead of throwing this error
Note: using We can get around that by using one of the below solutions.
or
That is wrong, as when the issue occurs, it will just redirect the user to https://dev.new.expensify.com:8082/request/new/8454902468342866/manual, and the user will not be able to see https://dev.new.expensify.com:8082/request/new/description/8454902468342866 the already created Request Money url, which is this issue all about. So yes, these two workarounds are not the solution to this problem at all; they will introduce another issue, and this issue will still be there, hence not solving anything at all. The main thing to note here is why it happened in the first place, as I have checked. The variables we are using in function and in that useEffect are identical, so I need to debug this properly, find the root cause of this error, and mention that with a proper solution as PR for this issue. That is the only correct solution for this error. Debug the reason why that state object is missing in the second execution and resolve that and explain that adequately in PR so we can avoid this and correctly resolve this issue without introducing any other issues. Note: I will provide the reason why the What alternative solutions did you explore? (Optional)I have tried these, but as explained above, they will introduce a new issue without solving it, so yes, they are not valid solutions. I will mention this here: The only valid solution for this problem is to debug why that |
I wasn't able to reproduce the issue. @izarutskaya Could help confirm if it's already fixed? |
@mollfpr I cannot reproduce this anymore Recording.1951.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Seems like this likely got fixed from some other PR. Going to go ahead and close it out. Let me know if I'm mistaken. |
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: v1.4.3-6
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation: @
Action Performed:
Expected Result:
The app on User B's side should not crash when clicking on the URL from the Request Money description page.
Actual Result:
The app crashes on User B's side when clicking on the Request Money description page URL.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6290258_1700916571533.2023-11-25_17-29-23.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: