-
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
Expense - Expense preview displays "fragment.text" when the expense is invalid #50553
Comments
Triggered auto assignment to @lakchote ( |
Triggered auto assignment to @Christinadobrzyn ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
It's directly related to #50341 Screen.Recording.2024-10-10.at.13.03.24.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Report preview display name text shows fragment.text when the report is invalid. What is the root cause of that problem?I don't know why the report becomes invalid when requesting a new expense after Clear cache and restart, but I want to focus on the specific issue we have, that is the fragment.text shows. In ReportActionItemFragment, if the type is empty, then we show App/src/pages/home/report/ReportActionItemFragment.tsx Lines 191 to 192 in ab5175c
When the report becomes invalid, the report preview action has an undefined This causes the array here to contain undefined as the item. App/src/pages/home/report/ReportActionItemSingle.tsx Lines 166 to 174 in ab5175c
Then, we map the array here and pass the fragment type with empty string as the fallback. Because the array item is undefined, the type is also undefined, so empty string is passed. App/src/pages/home/report/ReportActionItemSingle.tsx Lines 287 to 293 in ab5175c
What changes do you think we should make in order to solve the problem?I believe what we want to do here is that, if the person is undefined, then return an empty array. To do that, we need to update the code to
OR Instead of fallback to empty string, fallback it to TEXT.
or just do both. |
Thanks @bernhardoj for your proposal. However, I'll be asking for a revert since I don't have the whole context here and it's tied to another blocker (#50547), and @grgia is OOO. |
Revert PR was merged #50557 assigning Georgia so you dont loose track of this |
👀 |
Closing out since we reverted the PR and I've addressed in a follow up (and this bug technically doesn't exist anymore) |
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.47-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Expense preview will still display the sender & receiver name when the expense is invalid.
Actual Result:
Expense preview displays "fragment.text" when the expense is invalid.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6630207_1728522633711.20241010_090508.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: