fix: export option not showing for admins#74063
Conversation
|
LGTM 👍 Thank you for your hard work! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@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] |
|
I'll review this today! |
|
@daledah To pass the |
|
The app crashes when changing the user’s role after making them an admin, although it seems completely unrelated to the changes in this PR. @daledah, could you please verify? Monosnap.screencast.2025-11-06.02-01-14.mp4 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_native.mp4Android: mWeb Chromeandroid_chrome.mp4iOS: HybridAppios_native.mp4iOS: mWeb Safariios_safari.mp4MacOS: Chrome / Safariweb_chrome.mp4MacOS: Desktopdesktop_app.mp4 |
i added in OP
@Krishna2323 i can't reproduce this bug. Could you please add more detailed steps? Screen.Recording.2025-11-07.at.15.11.03.mov |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective. @daledah could you please fill out the explanation of change section so it's easy for reviewers to understand what the change is doing?
|
@daledah invite a user as a member then make them admin and again make them to member: Monosnap.screencast.2025-11-07.23-05-19.mp4 |
@Krishna2323 Actually, it’s not related to this PR — it’s in the |
@daledah could you please explain the root cause of that issue? |
|
@Krishna2323 I couldn’t reproduce this bug on my end, but based on your video, I suspect the issue might be caused by having multiple connections and not setting an exporter for one of them. Could you share the Onyx data for your |
Edit: Sorry, it's not reproducible because of the changes made in this PR. Here is the reproduction steps:
Monosnap.screencast.2025-11-12.00-40-57.mp4@daledah let me know if the bug is still not reproducible (after removing the fix from this PR). |
|
@lakchote We’re seeing this crash — should we fix it here or create a new issue for it? We don’t know the root cause yet, but @daledah can investigate it, and if it’s straightforward, we can implement the fix here. Based on the logs, the root cause seems to be a missing ternary operator, which throws |
I think we should fix it here @Krishna2323 @daledah as it's closely related |
|
@daledah bump |
|
I still can't reproduce this bug by following this step, will try again soon and give an update soon |
|
@daledah sure, don't forget to remove the changes from |
@Krishna2323 finally, i can reproduce this bug. Looks like we don't have export field in connection config |
|
@lakchote if the |
Yes, I think it's fine too. |
|
@daledah unit tests are failing. |
Krishna2323
left a comment
There was a problem hiding this comment.
Looks good to me! 🚀
@lakchote could you please re-run the failing check? Thanks!
|
✋ 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/lakchote in version: 9.2.62-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.62-5 🚀
|

Explanation of Change
Export option is only showing for the preferred exporter, not showing for admins on workspaces who turn off payments
Fixed Issues
$ #72517
PROPOSAL: #72517 (comment)
Tests
Prerequisites: user has a workspace connect to QBO with auto-sync is disabled
Offline tests
Same as tests
QA Steps
Same as tests
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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desk.mov