Fix company cards page loading#60629
Conversation
|
@rushatgabhane 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] |
|
cc @DylanDylann as he was a reviewer of the initial PR. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-23.at.15.01.13.movAndroid: mWeb ChromeScreen.Recording.2025-04-23.at.14.37.18.moviOS: NativeiOS: mWeb SafariScreen.Recording.2025-04-23.at.14.37.02.movMacOS: Chrome / SafariScreen.Recording.2025-04-23.at.14.43.34.movMacOS: DesktopScreen.Recording.2025-04-23.at.14.43.48.mov |
| return acc; | ||
| }, | ||
| {settings: {companyCards, companyCardNicknames, oAuthAccountDetails}}, | ||
| {settings: {companyCards, companyCardNicknames, oAuthAccountDetails}, isLoading: !defaultFeed || defaultFeed?.isLoading}, |
There was a problem hiding this comment.
| {settings: {companyCards, companyCardNicknames, oAuthAccountDetails}, isLoading: !defaultFeed || defaultFeed?.isLoading}, | |
| {settings: {companyCards, companyCardNicknames, oAuthAccountDetails}, isLoading: isEmptyObject(defaultFeed) || defaultFeed?.isLoading}, |
There was a problem hiding this comment.
@VickyStash I think we should use isEmptyObject check in this case
There was a problem hiding this comment.
@DylanDylann If the user has only domain feeds, the workspace feed (default) will be returned as an empty object.
So, checking for an empty object can break the logic, I believe.
|
✋ 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/puneetlath in version: 9.1.32-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.32-8 🚀
|

Explanation of Change
This PR fixes small regression from #60261
Fixed Issues
$ #60533
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
android.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4