Skip to content

[HOLD for payment 2024-10-10] [$250] Bank Account - "Please provide a valid email" error is not dismissed when navigating back #49129

Closed

Description

@IuliiaHerets

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: v9.0.33-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): gibethlehem.@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Log in to an account
  2. Create a workspace > Enable Workflow > Connect bank account > Connect online with plaid
  3. continues the flow until you reached "Company website" page
  4. Click on "Next" button with out entering an email. Notice error is shown.
  5. Navigate back to "Tax" > Click next. Notice "Please provide a valid email" is shown
  6. Navigate back

Expected Result:

"Please provide a valid email" error is not shown

Actual Result:

"Please provide a valid email" error is shown even after navigating back to other pages.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6601153_1726153889912.12.09.2024_17.40.24_REC.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021838748303382636901
  • Upwork Job ID: 1838748303382636901
  • Last Price Increase: 2024-09-25
  • Automatic offers:
    • allgandalf | Reviewer | 104202965
Issue OwnerCurrent Issue Owner: @anmurali

Activity

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

    @melvin-bot

    Triggered auto assignment to @anmurali (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. IuliiaHerets commented on Sep 12, 2024

    @IuliiaHerets
    Author

    @anmurali 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. gijoe0295 commented on Sep 12, 2024

    @gijoe0295
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-09-12 19:20:18 UTC.

    Proposal

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

    The OP is incorrect. Should be Please provide a valid website error.

    "Please provide a valid website" error is shown even after navigating back to other pages.

    What is the root cause of that problem?

    Offending PR: #48731

    We save the defaultCompanyWebsite here as draft:

    useEffect(() => {
    BankAccounts.addBusinessWebsiteForDraft(defaultCompanyWebsite);
    }, [defaultCompanyWebsite]);

    But the default value might either be a website prefix placeholder https:// or a public domain website:

    function getDefaultCompanyWebsite(session: OnyxEntry<OnyxTypes.Session>, user: OnyxEntry<OnyxTypes.User>): string {
    return user?.isFromPublicDomain ? 'https://' : `https://www.${Str.extractEmailDomain(session?.email ?? '')}`;
    }

    If https:// is saved to the form draft, we would call the UpdateCompanyInformationForBankAccount with website: "https://" attribute and the BE would return the Please provide a valid Website error which keeps showing in all the sub-steps because it is a form error.

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

    https:// should not be saved as draft because it's just an input placeholder value.

    We should early return in the above effects if defaultCompanyWebsite === 'https://'.

  5. melvin-bot commented on Sep 16, 2024

    @melvin-bot

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

  6. gijoe0295 commented on Sep 17, 2024

    @gijoe0295
    Contributor

    @anmurali Can you check this?

  7. melvin-bot commented on Sep 18, 2024

    @melvin-bot

    @anmurali Eep! 4 days overdue now. Issues have feelings too...

  8. melvin-bot commented on Sep 20, 2024

    @melvin-bot

    @anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  9. melvin-bot commented on Sep 24, 2024

    @melvin-bot

    @anmurali 10 days overdue. I'm getting more depressed than Marvin.

  10. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 25, 2024
  11. changed the title [-]Bank Account - "Please provide a valid email" error is not dismissed when navigating back[/-] [+][$250] Bank Account - "Please provide a valid email" error is not dismissed when navigating back[/+] on Sep 25, 2024
  12. melvin-bot commented on Sep 25, 2024

    @melvin-bot
  13. 41 remaining items

  14. twilight2294 commented on Oct 12, 2024

    @twilight2294
    Contributor

    Apologies for the delay @twilight294 , can you please apply for the job, then we'll hire and pay?
    https://www.upwork.com/jobs/~021844895880907146867

    Sorry, I don't have enough connects on upwork to apply, is there a way to hire me directly @mallenexpensify ?
    my upwork is: https://www.upwork.com/freelancers/~01047e1bc60ea55d80

  15. twilight2294 commented on Oct 14, 2024

    @twilight2294
    Contributor

    hello @mallenexpensify , reminder since it was weekend last time i texted ^

  16. melvin-bot commented on Oct 14, 2024

    @melvin-bot

    @anmurali, @blimpich, @allgandalf, @twilight294 Huh... This is 4 days overdue. Who can take care of this?

  17. allgandalf commented on Oct 14, 2024

    @allgandalf
    Contributor

    Not overdue sir melvin! 🙇

  18. twilight2294 commented on Oct 15, 2024

    @twilight2294
    Contributor

    hello @mallenexpensify , can you please help me out with #49129 (comment)

  19. mallenexpensify commented on Oct 16, 2024

    @mallenexpensify
    Contributor

    Apologies @twilight294 , I just invited you to the job, can you accept then I'll pay?
    In the 3+ years we've been working with Upwork, I haven't encountered the issue you're experiencing.

  20. twilight2294 commented on Oct 16, 2024

    @twilight2294
    Contributor

    Thanks for the invite @mallenexpensify , I don't know what is happening, but upwork never allocated me connects :

    Screenshot 2024-10-16 at 9 30 25 PM
  21. mallenexpensify commented on Oct 16, 2024

    @mallenexpensify
    Contributor

    I think it's hard for newer freelancers in Upwork. And, for working with us, once you've been hired for 1 job it's a LOT easier to find and hire you for future jobs. Can you please accept the job and reply here once you have?
    https://www.upwork.com/jobs/~021844895880907146867

  22. twilight2294 commented on Oct 16, 2024

    @twilight2294
    Contributor

    I accepted the offer, thank you so much, Looking forward to working on more issues

  23. mallenexpensify commented on Oct 16, 2024

    @mallenexpensify
    Contributor

    Thanks @twilight294 , you've been paid. Payment breakdown updated above too.

    Test case created too

    🚀

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions