Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[$500] Bank account - Error "You must accept the terms" shows up when the terms are accepted #38862

Closed
6 tasks done
izarutskaya opened this issue Mar 23, 2024 · 60 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 23, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.56-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com.
  2. Go to Profile > Workspaces > any workspace.
  3. Go to Bank account.
  4. Click Click Connect online with Plaid.
  5. Proceed with the setup.
  6. In the final step (terms and agreements), click Save & continue.
  7. Click Save & continue again.
  8. Close the RHP.
  9. Click Bank account.

Expected Result:

At the final step, after checking all terms and agreement, user will be able to set up bank account successfully.

Actual Result:

At the final step, after checking all terms and agreement, clicking on Save & continue button shows the error "You must accept the terms".
In Step 11, after closing bank account setup and reopening bank account RHP, the bank account is added successfully.

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

Bug6423753_1711142400869.20240323_051525.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0171463c8654b8a151
  • Upwork Job ID: 1772699947694186497
  • Last Price Increase: 2024-04-02
  • Automatic offers:
    • fedirjh | Contributor | 0
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 23, 2024
Copy link

melvin-bot bot commented Mar 23, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 23, 2024
Copy link
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.

Copy link

melvin-bot bot commented Mar 23, 2024

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

@izarutskaya
Copy link
Author

@muttmuure 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.

We think this issue might be related to the #wave-control.

@izarutskaya
Copy link
Author

Production

bandicam.2024-03-23.20-05-24-015.mp4

@allgandalf
Copy link
Contributor

Proposal

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

Error "You must accept the terms" shows up when the terms are accepted

What is the root cause of that problem?

We use nullish operator ?? here, this introduces a bug when the reimbursementAccount?.achData?.acceptTermsAndConditions value is null:

const defaultValues = {
isAuthorizedToUseBankAccount: reimbursementAccount?.achData?.isAuthorizedToUseBankAccount ?? false,
certifyTrueInformation: reimbursementAccount?.achData?.certifyTrueInformation ?? false,
acceptTermsAndConditions: reimbursementAccount?.achData?.acceptTermsAndConditions ?? false,
};

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

Use || operator instead

What alternative solutions did you explore? (Optional)

N/A

@ghost
Copy link

ghost commented Mar 23, 2024

This is the regression from this PR - #34413

@allgandalf
Copy link
Contributor

you sure about that @godofoutcasts94 ? That was merged to production in january 🤔

@ghost
Copy link

ghost commented Mar 23, 2024

yes I am pretty sure of it @GandalfGwaihir . This is the main cause because after that there has been no change in that file after January.

@flodnv
Copy link
Contributor

flodnv commented Mar 25, 2024

So @godofoutcasts94 you are able to reproduce in production?

@ghost
Copy link

ghost commented Mar 25, 2024

Yes but in the final step, I am getting that error but when I check all the terms and conditions checkboxes and click on Save & Continue, the error is displaying but when I close the RHP and click on Bank Account, then the bank account is added and getting displayed with name and selected bank
cc - @flodnv

@ghost
Copy link

ghost commented Mar 25, 2024

If you need a working video of I can share with you as well @flodnv

@flodnv
Copy link
Contributor

flodnv commented Mar 25, 2024

Yes please

@ghost
Copy link

ghost commented Mar 25, 2024

@flodnv I used connect with plaid and this video is of the final steps of it.

Screen.Recording.2024-03-26.at.12.45.10.AM.mp4

@flodnv
Copy link
Contributor

flodnv commented Mar 25, 2024

@godofoutcasts94 I'm confused because your video is on dev (not prod) and is not showing the same exact flow as the original video.

@allgandalf
Copy link
Contributor

allgandalf commented Mar 25, 2024

Hey @flodnv let me help you here, if you see the production video attached by @izarutskaya , they never reach to the accept terms page

This is not a deploy blocker but rather a normal bug :)

@flodnv
Copy link
Contributor

flodnv commented Mar 25, 2024

Thanks for pointing that out, I agree that was not the same test. Asking for a retest here: https://expensify.slack.com/archives/C01GTK53T8Q/p1711401274700469?thread_ts=1711394653.352709&cid=C01GTK53T8Q

@flodnv
Copy link
Contributor

flodnv commented Mar 25, 2024

Ok but @godofoutcasts94 is showing the bug exists on dev, no? What makes us think it does not exist on production?

@amyevans
Copy link
Contributor

Testing locally on the production branch, I am still unable to successfully complete the form (albeit the exact error message is a bit different - not sure if that is meaningful and/or if I followed the exact same test steps?):

Screen.Recording.2024-03-25.at.6.20.44.PM.mov

But based on what I see at least I don't think this needs to be a deploy blocker

@yuwenmemon yuwenmemon removed the Hourly KSv2 label Mar 25, 2024
@muttmuure muttmuure added Daily KSv2 and removed Weekly KSv2 labels Jun 12, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jun 12, 2024
@muttmuure
Copy link
Contributor

Making Daily

@melvin-bot melvin-bot bot added the Overdue label Jun 14, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

@flodnv, @fedirjh, @muttmuure Huh... This is 4 days overdue. Who can take care of this?

@muttmuure
Copy link
Contributor

@fedirjh are you able to take a look at the repro steps here?

@muttmuure muttmuure reopened this Jun 19, 2024
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 19, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Jun 24, 2024

I'm currently reviewing this.

@melvin-bot melvin-bot bot removed the Overdue label Jun 24, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Jun 24, 2024

Now I have got another error :

Screenshot 2024-06-24 at 3 07 30 PM
CleanShot.2024-06-24.at.14.45.10.mp4

@fedirjh
Copy link
Contributor

fedirjh commented Jun 24, 2024

This is with a brand new account:

CleanShot.2024-06-24.at.15.04.37.mp4

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2024
Copy link

melvin-bot bot commented Jun 27, 2024

@flodnv, @fedirjh, @muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick!

@fedirjh
Copy link
Contributor

fedirjh commented Jul 1, 2024

@kbecciv can you please re-test this bug ?

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@muttmuure muttmuure added Weekly KSv2 and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2024
@muttmuure muttmuure added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Jul 12, 2024
@muttmuure
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Jul 22, 2024
@muttmuure
Copy link
Contributor

Closing as not reproducible

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Weekly KSv2
Projects
None yet
Development

No branches or pull requests