Skip to content

[$500] Bank - Indian address is entered but in States section, US states drop down list is shown #30693

Closed

Description

@lanitochka17

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:**1.3.94-0
**Reproducible in staging?:**Y
**Reproducible in production?:**Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
**Issue reported by:**Applause - Internal Team
Slack conversation:

Action Performed:

  1. Launch app
  2. Tap profile icon
  3. Tap on Workspaces
  4. Tap on a Workspace
  5. Tap Bank account
  6. Tap connect manually
  7. Enter all details and tap next
  8. In profile page, in company address section, enter "India"
  9. From suggested list, select address "India-Pakistan Border road"
  10. Tap State
  11. Scroll down the page

Expected Result:

When Indian address is entered, in States section, Indian states drop down list must be shown

Actual Result:

When Indian address is entered, in States section, US states drop down list is shown

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6259157_1698831183907.indi.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0107d7dfae949d0ead
  • Upwork Job ID: 1719699161108930560
  • Last Price Increase: 2023-11-01
  • Automatic offers:
    • s77rt | Reviewer | 27475593
    • dukenv0307 | Contributor | 27475596

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 1, 2023
  2. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. changed the title [-]Bank - Indian address is entered but in States section, US states drop down list is shown[/-] [+][$500] Bank - Indian address is entered but in States section, US states drop down list is shown[/+] on Nov 1, 2023
  4. melvin-bot commented on Nov 1, 2023

    @melvin-bot
  5. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  6. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 1, 2023
  7. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External)

  8. dukenv0307 commented on Nov 1, 2023

    @dukenv0307
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    When Indian address is entered, in States section, US states drop down list is shown

    What is the root cause of that problem?

    In the bank company flow, we're always showing StatePicker, regardless of the country selected.

    What changes do you think we should make in order to solve the problem?

    In the bank company flow, we should show StatePicker only if country selected is USA.

    We need to double check all flow that use StatePicker as well to make sure that's correct.

    What alternative solutions did you explore? (Optional)

    If only USA companies are allowed to create bank account, we should limit the country available in the AddressForm to only US, this can be done by setting the isLimitedToUSA to true in this flow. And as a fallback we should show an error in the field if we select a non-US address.

  9. ishpaul777 commented on Nov 1, 2023

    @ishpaul777
    Contributor

    Not a bug, we only allow US address in bank account flow, so we have dropdown for US states only best we can do is to show error when selected address is not US. That would require a approval from internal so not adding a proposal.

  10. erquhart commented on Nov 1, 2023

    @erquhart
    Contributor

    @dukenv0307 proposal is what I was about to say as well, the bug is that isLimitedToUSA prop isn't set on the AddressForm, as the company info section is clearly aimed at US companies only. +1.

  11. s77rt commented on Nov 1, 2023

    @s77rt
    Member

    @dukenv0307 Thanks for the proposal. I think passing isLimitedToUSA makes sense here 👍.

    🎀 👀 🎀 C+ reviewed
    Link to proposal

  12. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

  13. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 1, 2023
  14. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job

  15. puneetlath commented on Nov 1, 2023

    @puneetlath
    Contributor

    Agreed, no point in showing options you can't choose.

  16. melvin-bot commented on Nov 1, 2023

    @melvin-bot

    📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  17. added
    ReviewingHas a PR in review
    and removed on Nov 2, 2023
  18. dukenv0307 commented on Nov 2, 2023

    @dukenv0307
    Contributor

    @s77rt The PR is ready for review.

  19. puneetlath commented on Nov 21, 2023

    @puneetlath
    Contributor

    Whoops. This has been on prod but it looks like the automation didn't run to update the issue. Paid you both, so we're good to go here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions