[CP Staging] Using the logical or operator instead nullish#75970
Conversation
…m fallbackIcon is use
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-11-25.at.1.50.35.PM.movScreen.Recording.2025-11-25.at.1.51.37.PM.mov |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Confirmed both issues are fixed. Screen.Recording.2025-11-25.at.1.50.35.PM.movScreen.Recording.2025-11-25.at.1.51.37.PM.mov |
|
Thank you @eh2077 for testing it 🙏 My local dev never show the concierge avatar 😅 |
|
+1, thanks! |
It might be because you have different concierge accountID in DB and your .env file. You need to update the .env file to have correct concierge account that is in your local DB |
|
@mjasikowski 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] |
Yesss!! You are my SAVIOR, Monil! ❤️ |
| fallbackAvatar = fallbackIcon ?? defaultAvatars.FallbackAvatar; | ||
| } | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| const fallbackAvatar = isWorkspace ? getDefaultWorkspaceAvatar(name) : fallbackIcon || defaultAvatars.FallbackAvatar; |
There was a problem hiding this comment.
NAB You could probably do something like this to not disable eslint rules:
const normalizedFallbackIcon =
typeof fallbackIcon === 'string' && fallbackIcon.trim() === '' ? undefined : fallbackIcon;
const fallbackAvatar = isWorkspace
? getDefaultWorkspaceAvatar(name)
: normalizedFallbackIcon ?? defaultAvatars.FallbackAvatar;|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…-avatar (cherry picked from commit 7799267) (cherry-picked to staging by lakchote)
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.63-1 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.63-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.64-5 🚀
|
Explanation of Change
Fix the deploy blocker. Detailed here.
Fixed Issues
$ #75931
$ #75930
PROPOSAL:
Tests
Test for #75931
Test for #75930
Offline tests
QA Steps
Same as test.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.Nov.25.2025.1.mp4