Skip to content

[$250] Wallet - After adding Debit Card user is directed to /home url and white blank page #39929

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.4.61-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: https://expensify.testrail.io/index.php?/tests/view/4480375
Issue reported by: Applause - Internal Team

Action Performed:

Prerequisite: A bank account is added previously

  1. Log in with a expensifail account
  2. Navigate to Settings; Wallet
  3. Click on "Add bank account"
  4. Click on the "Debit Card" option
  5. Enter any debit card number from this list Sandbox Cards
  6. For the rest of the fields you enter any random valid data
  7. Click on Save
  8. Click Back arrow on Additional Details

Expected Result:

User is directed to the url "https://staging.new.expensify.com/settings/wallet"
and see the wallet page

Actual Result:

User is directed to the url "https://staging.new.expensify.com/home"
instead of "https://staging.new.expensify.com/settings/wallet"
and see a blank white page after blinking a milisecond wallet page

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

Bug6442636_1712599812072.2024-04-08_20-41-45.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b1f26018d8ecba15
  • Upwork Job ID: 1778889569395892224
  • Last Price Increase: 2024-04-12
  • Automatic offers:
    • dukenv0307 | Reviewer | 0
    • bernhardoj | Contributor | 0

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Apr 9, 2024
  2. melvin-bot commented on Apr 9, 2024

    @melvin-bot

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

  3. lanitochka17 commented on Apr 9, 2024

    @lanitochka17
    Author

    @johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  4. bernhardoj commented on Apr 9, 2024

    @bernhardoj
    Contributor

    Proposal

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

    After adding a debit card, the user is shown a LHN with an empty/blank central page screen.

    What is the root cause of that problem?

    After adding a debit card page, we call PaymentMethods.continueSetup()

    PaymentMethods.continueSetup();

    In PaymentMethods.continueSetup(), we call Navigation.goBack with a fallback route and the fallback route value is defaulted to ROUTES.HOME. ROUTES.HOME refers to the LHN.

    function continueSetup(fallbackRoute: Route = ROUTES.HOME) {
    if (!kycWallRef.current?.continueAction) {
    Navigation.goBack(fallbackRoute);

    Because the add debit card page is the only RHP page, the fallback route will be used, so the add debit card page is replaced with ROUTES.HOME, that's why we see the LHN with an empty/blank central page screen.

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

    We should remove the default fallback route and make it optional.

    function continueSetup(fallbackRoute: Route = ROUTES.HOME) {

    This way, after adding a debit card page, the page behind the RHP will still be the settings page.

    This is consistent with what we did in this PR which is removing ROUTES.HOME from fallback route.

  5. melvin-bot commented on Apr 12, 2024

    @melvin-bot

    @johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick!

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Apr 12, 2024
  7. changed the title [-] Wallet - After adding Debit Card user is directed to /home url and white blank page[/-] [+][$250] Wallet - After adding Debit Card user is directed to /home url and white blank page[/+] on Apr 12, 2024
  8. melvin-bot commented on Apr 12, 2024

    @melvin-bot
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Apr 12, 2024
  10. melvin-bot commented on Apr 12, 2024

    @melvin-bot

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

  11. 15 remaining items

  12. melvin-bot commented on May 10, 2024

    @melvin-bot

    This issue has not been updated in over 15 days. @johncschuster, @bernhardoj, @hayata-suenaga, @dukenv0307 eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  13. hayata-suenaga commented on May 10, 2024

    @hayata-suenaga
    Contributor

    The PR was deployed to production three weeks ago. I don't know why Melvin didn't remove the reviewing label.

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on May 10, 2024
  15. johncschuster commented on May 13, 2024

    @johncschuster
    Contributor

    Oh wow, thanks for calling that out, @hayata-suenaga. I'll get payment taken care of now.

  16. johncschuster commented on May 13, 2024

    @johncschuster
    Contributor

    I've issued payment 🎉 . Thanks for your patience, everyone!

  17. hayata-suenaga commented on May 13, 2024

    @hayata-suenaga
    Contributor

    closing the issue now. Please feel free to re-open the issue if the payments haven't received 😄

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.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions