-
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
[$250] Copilot - App crashes after switching account #49939
Comments
Triggered auto assignment to @twisterdotcom ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when switching account. What is the root cause of that problem?As shown by the error on the console, the error caused by the The error is thrown specifically from
When switching accounts, the report becomes undefined and we default the reportID attribute to an empty string. App/src/pages/home/ReportScreen.tsx Lines 169 to 173 in 36032e0
Because empty string is not undefined/null, What changes do you think we should make in order to solve the problem?We need to use || instead of ??
I see that we use ?? for REPORT_NAME_VALUE_PAIRS in several places too, we can replace them all with || too. |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when switching account. What is the root cause of that problem?when switiching the accounts, the following oynx key is resolved as
This occurs because when switching, the report becomes empty. Since we are constructing the report object in this context, the report ID fallback value is set to an empty string instead of -1: App/src/pages/home/ReportScreen.tsx Line 173 in 36032e0
What changes do you think we should make in order to solve the problem?we should change the fallback value here to reportID: reportOnyx.reportID ?? -1, What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021840797218276068437 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
Thanks for the proposals. |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@rojiphil, @twisterdotcom, @jasperhuangg Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
This is fixed in #49255. |
Ok. Let's close this then and move on cc @twisterdotcom @jasperhuangg |
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: 9.0.41-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
App will not crash
Actual Result:
App crashes after switching account
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6618752_1727547900276.20240929_022127.mp4
logs (2).txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rojiphilThe text was updated successfully, but these errors were encountered: