[CP Staging] Fix for App login crash#30014
Conversation
|
@youssef-lr 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] |
@kubabutkiewicz make sure to link the issues correctly so it always finds the correct engineer for review Only |
|
@mountiny I am sorry but I don't know what is wrong here 😅 |
|
@kubabutkiewicz yeah but its about the format as you can see in my previous comment. It needs to be strictly one specific format :D |
|
ohhh ok, now I get it , thanks ! |
| const invertedMultiplier = shouldSortInDescendingOrder ? -1 : 1; | ||
|
|
||
| return reportActions.filter(Boolean).sort((first, second) => { | ||
| return reportActions?.filter(Boolean).sort((first, second) => { |
There was a problem hiding this comment.
NAB: ? is redundant. See above line:
if (!Array.isArray(reportActions)) {
throw new Error(`ReportActionsUtils.getSortedReportActions requires an array, received ${typeof reportActions}`);
}
| * Finds most recent IOU request action ID. | ||
| */ | ||
| function getMostRecentIOURequestActionID(reportActions: ReportAction[] | null): string | null { | ||
| if (!Array.isArray(reportActions)) { |
There was a problem hiding this comment.
NAB: Let's add comment here so everyone knows context about the root cause without reading full conversation.
Otherwise, they might research the case when reportActions is not array, which doesn't actually exist.
Reviewer Checklist
Screenshots/VideosWebBefore fix: before.movAfter fix: after.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Fix for App login crash (cherry picked from commit 362d8b8)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.87-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.87-12 🚀
|



Details
Fixed Issues
$ #29965
PROPOSAL: N/A
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop