fix: LHN of self-DM still shows actionable whisper after submitted#44684
Conversation
|
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-07.at.10.02.22.PM.movAndroid: mWeb ChromeScreen.Recording.2024-07-07.at.10.00.53.PM.moviOS: NativeScreen.Recording.2024-07-07.at.9.57.23.PM.moviOS: mWeb SafariScreen.Recording.2024-07-07.at.9.56.42.PM.movMacOS: Chrome / SafariScreen.Recording.2024-07-07.at.9.51.16.PM.movMacOS: DesktopScreen.Recording.2024-07-07.at.9.52.55.PM.mov |
|
@aldo-expensify Pls help review this PR |
|
Sorry for the delay, I was OOO |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.0.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
| function isResolvedActionTrackExpense(reportAction: OnyxEntry<ReportAction>): boolean { | ||
| const resolution = reportAction && 'resolution' in reportAction ? reportAction?.resolution : null; | ||
| const originalMessage = getOriginalMessage(reportAction); | ||
| const resolution = originalMessage && 'resolution' in originalMessage ? originalMessage?.resolution : null; |
There was a problem hiding this comment.
Before accessing the 'resolution' in originalMessage, we should have checked the typeof originalMessage, and if it's an object, then we should have accessed the 'resolution'. Directly accessing the 'resolution' causes this crash when we get the system message for exporting to CSV.
Details
Fixed Issues
$ #44217
PROPOSAL: #44217 (comment)
Tests
Tracked expense is not displayed in the self DM anymore.
LHN of self-DM no longer shows "What would you like to do with this expense?"
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-07-01.at.22.11.42.mov
Android: mWeb Chrome
Screen.Recording.2024-07-01.at.22.13.12.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-07-01.at.22.16.46.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-01.at.22.08.41.mov
MacOS: Desktop
Screen.Recording.2024-07-01.at.22.08.41.mov