Skip to content

Expense - Personal bank account can be selected when paying workspace expense #71524

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.2.20-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail: #69437
Email or phone of affected tester (no customers): applausetester+khcategory19@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • User has a workspace connected to business bank account.
  • User has added a personal bank account.
  1. Go to staging.new.expensify.com
  2. Create a new USD workspace.
  3. Go to workspace chat.
  4. Create an expense in workspace chat.
  5. Click Submit and Approve.
  6. Click Pay button.
  7. Click Pay with business account.
  8. Select the personal bank account (ends with 0000).

Expected Result:

Personal bank account should not appear in the list.

Actual Result:

Personal bank account appears in the list.
After selecting personal bank account (ends with 0000), business bank account (ends with 1111) appears on the pay button.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6959901_1759189150533.Screen_Recording_2025-09-30_at_07.35.31.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Sep 30, 2025
  2. melvin-bot commented on Sep 30, 2025

    @melvin-bot

    Triggered auto assignment to @stephanieelliott (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.

  3. melvin-bot commented on Sep 30, 2025

    @melvin-bot

    Triggered auto assignment to @amyevans (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. github-actions commented on Sep 30, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on Sep 30, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. amyevans commented on Sep 30, 2025

    @amyevans
    Contributor
  7. dominictb commented on Sep 30, 2025

    @dominictb
    Contributor

    @MrMuzyk I think this comes from the condition:

    return (!!filterType && account.accountData?.type === filterType) || (!!filterCurrency && account.bankCurrency === filterCurrency);

    It should be &&, right?

  8. MrMuzyk commented on Sep 30, 2025

    @MrMuzyk
    Contributor

    Looking into this.

  9. srikarparsi commented on Sep 30, 2025

    @srikarparsi
    Contributor

    Thanks @dominictb and @MrMuzyk! I can take over for this one if you would like @amyevans

  10. self-assigned this
    on Sep 30, 2025
  11. MrMuzyk commented on Sep 30, 2025

    @MrMuzyk
    Contributor

    It should be &&, right?

    Uhm almost. There might be a case where we pass only one filter so then the whole condition would fail.
    I'll alter the condition slightly

                    const typeMatches = !filterType || account.accountData?.type === filterType;
                    const currencyMatches = !filterCurrency || account.bankCurrency === filterCurrency;
    
                    return typeMatches && currencyMatches;
    
  12. added
    Reviewing
    on Sep 30, 2025
  13. removed
    DeployBlocker
    on Sep 30, 2025
  14. srikarparsi commented on Sep 30, 2025

    @srikarparsi
    Contributor

    Reverted here

    Tested and if the workspace doesn't have a bank account, the new bank account modal is showing instead of the possible bank accounts which is expected with the revert.

    Image
  15. removed
    DeployBlockerCash
    on Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringHourlyReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions