Repository navigation
fix: Multiple "No merchant" labels in pie chart after switching languages - #93288
Conversation
|
@ZhenjaHorbach 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: HybridApp2026-06-11.16.57.16.movAndroid: mWeb Chrome2026-06-11.16.59.58.moviOS: HybridApp2026-06-11.16.57.16.moviOS: mWeb Safari2026-06-11.16.59.58.movMacOS: Chrome / Safari2026-06-11.16.42.22.mov |
|
LGTM! |
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.4.6-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no documentation changes required. This PR is a one-line internal bug fix in There is no change to any user-facing, documented behavior:
Because this is a rendering bug fix with no observable change to documented behavior, no draft help site PR was created. @mhawryluk, please review this assessment and confirm no help site changes are needed. If you believe a documentation update is warranted, let me know and I'll draft the help site PR. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.6-4 🚀
|
Explanation of Change
Fixes a bug when rendering pie chart labels. There can be a duplicate among the labels, if the user names a merchant the same as we label the no merchant case (
No merchantin English). Previously the legend items had the key constructed by the display value, so there could be multiple elements in the list with the same key, which confused react reconciliation and resulted in a weird behavior: after changing the app's language a new label for empty merchants would be appended, instead of replacing the old one.Fixed Issues
$ #90646
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests.
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))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
MacOS: Chrome / Safari
Nagranie.z.ekranu.2026-06-11.o.15.37.22.mov