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
Workspaces - Update to USD popup is not dismissed dynamically if currency is updated #65015
Version Number: 9.1.71-8 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:https://github.com/Expensify/Expensify/issues/299830 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team
Please re-state the problem that we are trying to solve in this issue.
Update to USD popup is not dismissed dynamically if currency is updated
What is the root cause of that problem?
The auto dismiss USD popup logic was removed here then it doesn't work now.
What changes do you think we should make in order to solve the problem?
We can update useDismissModalForUSD hook to support CONST.BETAS.GLOBAL_REIMBURSEMENTS_ON_ND and also auto dismiss this modal if the currency is supported. We can also change the name of the hook to more useful.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Update useDismissModalForUSD unit test to cover the new case
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.
Activity
melvin-bot commentedon Jun 26, 2025
Triggered auto assignment to @adelekennedy (
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.mkzie2 commentedon Jun 26, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Update to USD popup is not dismissed dynamically if currency is updated
What is the root cause of that problem?
The auto dismiss USD popup logic was removed here then it doesn't work now.
What changes do you think we should make in order to solve the problem?
useDismissModalForUSDhook to supportCONST.BETAS.GLOBAL_REIMBURSEMENTS_ON_NDand also auto dismiss this modal if the currency is supported. We can also change the name of the hook to more useful.App/src/hooks/useDismissModalForUSD.tsx
Line 5 in 6b934d1
App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 77 in 6b934d1
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Update
useDismissModalForUSDunit test to cover the new caseWhat 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.
melvin-bot commentedon Jun 30, 2025
@adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jul 1, 2025
@adelekennedy Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Jul 3, 2025
@adelekennedy Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Jul 7, 2025
@adelekennedy 10 days overdue. Is anyone even seeing these? Hello?
adelekennedy commentedon Jul 8, 2025
this is really difficult for me to reproduce - closing as this is a bit of an edge case
mkzie2 commentedon Jul 8, 2025
@adelekennedy This bug was fixed here and it happens again now. I think we should fix that.