You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-01-06] [$250] Expensify Card feed defaults to other workspace after enabling Expensify Card in other workspace #65593
Version Number: 9.1.77-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/6436914 Email or phone of affected tester (no customers):applausetester+070706kh@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Workspace Settings
Action Performed:
Precondition:
Workspace A has enabled Expensify Card feature with at least one assigned card.
Go to staging.expensify.com
Create a new workspace B.
Go to workspace settings > More features.
Enable Expensify Card.
Go to Expensify Card.
Click Issue new card.
Select the bank account.
Click Got it.
Go back to Workspace A settings (that has at least one assigned Expensify card).
Go to Expensify Card.
Expensify Card feed from Workspace B is auto-selected, when user is on Workspace A.
Click on the Expensify Card feed dropdown.
The selected card feed is not highlighted.
Click on the current card feed and reopen card feed list.
Now the selected card feed is highlighted.
Expected Result:
In Step 11, when user opens Expensify Card on Workspace A, card feed from Workspace A will be selected.
In Step 13, the selected card feed will be highlighted.
Actual Result:
In Step 11, when user opens Expensify Card on Workspace A, card feed from Workspace B is opened instead.
In Step 13, the selected card feed is not highlighted.
In Step 15, after user reselects the current card feed and reopens the card feed list, the selected card feed is highlighted.
Please re-state the problem that we are trying to solve in this issue.
In Step 11, when user opens Expensify Card on Workspace A, card feed from Workspace B is opened instead.
In Step 13, the selected card feed is not highlighted.
In Step 15, after user reselects the current card feed and reopens the card feed list, the selected card feed is highlighted.
What is the root cause of that problem?
We are based on LAST_SELECTED_EXPENSIFY_CARD_FEED Onyx to set the default fund id here
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Expensify Card feed defaults to other workspace after enabling Expensify Card in other workspace[/-][+][$250] Expensify Card feed defaults to other workspace after enabling Expensify Card in other workspace[/+]on Jul 7, 2025
Please re-state the problem that we are trying to solve in this issue.
Problem 1: When user opens Expensify Card on Workspace A, card feed from Workspace B is opened instead.
Problem 2: the selected card feed is not highlighted.
In the first time going to Expensify Card on Workspace A, both lastSelectedExpensifyCardFeed and domainFundID are unavailable.
Note: lastSelectedExpensifyCardFeed only be updated if we select the option from Expensify Card Selector
So useDefaultFundID return workspaceAccountID
When creating the card feed from Workspace B, by some way (relying on workspace setup), this feed is set to domainFundID. And in the next time, we go to Expensify Card on Workspace A, useDefaultFundID return domainFundID that belongs workspace B
What changes do you think we should make in order to solve the problem?
In the Expensify Card page, we need to LAST_SELECTED_EXPENSIFY_CARD_FEED to reflect the correct fund ID it is displaying
As a result of the above solution, problem 2 is also fixed because we will don't change feed anymore
Problem 2: the selected card feed is not highlighted.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.88-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Pujan92@twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
@trjExpensify - as I, @twisterdotcom am already assigned to this issue as BZ, could you also check this box to confirm the Payment Summary above. Note that no single individual can both confirm the payment amounts and approve the payment itself due to SOX.
Activity
melvin-bot commentedon Jul 7, 2025
Triggered auto assignment to @twisterdotcom (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.daledah commentedon Jul 7, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 11, when user opens Expensify Card on Workspace A, card feed from Workspace B is opened instead.
In Step 13, the selected card feed is not highlighted.
In Step 15, after user reselects the current card feed and reopens the card feed list, the selected card feed is highlighted.
What is the root cause of that problem?
We are based on
LAST_SELECTED_EXPENSIFY_CARD_FEEDOnyx to set the default fund id hereApp/src/hooks/useDefaultFundID.ts
Lines 27 to 29 in d9daefe
But we don't update the
LAST_SELECTED_EXPENSIFY_CARD_FEEDwhen a user visits an expensify card page in another workspaceWhat changes do you think we should make in order to solve the problem?
domainNameto getpolicyIDsimilar to hereApp/src/libs/PolicyUtils.ts
Lines 1409 to 1411 in d9daefe
LAST_SELECTED_EXPENSIFY_CARD_FEEDwhen the user accesses a different policy inWorkspaceExpensifyCardPagecomponentWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
[-]Expensify Card feed defaults to other workspace after enabling Expensify Card in other workspace[/-][+][$250] Expensify Card feed defaults to other workspace after enabling Expensify Card in other workspace[/+]melvin-bot commentedon Jul 7, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021942356016062233779
melvin-bot commentedon Jul 7, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (
External)thelullabyy commentedon Jul 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Problem 1: When user opens Expensify Card on Workspace A, card feed from Workspace B is opened instead.
Problem 2: the selected card feed is not highlighted.
What is the root cause of that problem?
Firstly, let's see this hook
App/src/hooks/useDefaultFundID.ts
Lines 11 to 40 in 30d781e
In the first time going to Expensify Card on Workspace A, both lastSelectedExpensifyCardFeed and domainFundID are unavailable.
Note: lastSelectedExpensifyCardFeed only be updated if we select the option from Expensify Card Selector
So useDefaultFundID return workspaceAccountID
When creating the card feed from Workspace B, by some way (relying on workspace setup), this feed is set to domainFundID. And in the next time, we go to Expensify Card on Workspace A, useDefaultFundID return domainFundID that belongs workspace B
What changes do you think we should make in order to solve the problem?
In the Expensify Card page, we need to LAST_SELECTED_EXPENSIFY_CARD_FEED to reflect the correct fund ID it is displaying
App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx
Lines 30 to 34 in 30d781e
As a result of the above solution, problem 2 is also fixed because we will don't change feed anymore
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
dangrous commentedon Jul 8, 2025
Happy to help with internal review here when it's ready!
78 remaining items
melvin-bot commentedon Dec 30, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Dec 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.88-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-01-06. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 30, 2025
@Pujan92 @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Pujan92 commentedon Jan 6, 2026
I think we don't need a checklist here as the preferred policy can't be updated in ND and this will be considered as an edge case.
melvin-bot commentedon Jan 8, 2026
@twisterdotcom Whoops! This issue is 2 days overdue. Let's get this updated quick!
twisterdotcom commentedon Jan 9, 2026
Payment Summary:
twisterdotcom commentedon Jan 10, 2026
@Pujan92 has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-89c7-a39e-f73f-852500851ef4trjExpensify commentedon Jan 19, 2026
Confirming payment summary here is correct.