-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent errorAttemptsCount from being wiped out by JSON.stringify #4889
Conversation
FWIW I'm not totally against updating Web-Secure so we don't send across an array here. We could use this as a temporary fix while I work on updating Web-S if that's the way we want to go. |
I spent some time trying to figure out why the API is returning an array with non numeric keys instead of an object and I'm pretty thoroughly confused on how it's possible... @NikkiWines has proposed this:
Which seems reasonable to me 👍 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @joelbettner in version: 1.0.88-3 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀
|
Details
Fixes a bug that keeps the user stuck at the Requestor Step of the bank account setup process.
This was originally fixed by this PR but, for some reason, that fix (which worked for a solid month without issue) stopped working. .
Instead of rewriting how we save errorAttemptsCount in Web-Secure and potentially causing issues with E.com bank account setups, let's just convert this to an object that JSON.stringify can handle before calling
API.BankAccount_SetupWithdrawal
. We call JSON.stringify here We can also revert the changes made to Web-Secure the the afore mentioned PR since they're no longer necessary.For reference as to why this is happening... JSON.stringify ignores any keys that aren't numeric.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/169717#issuecomment-907336665
Tests
isPlaidTestRequestor()
inlib/ACHData.php
to returnfalse
so that we run the ownerIdentity checksQA
/bank-account
Add Verified Bank Account
Log Into Your Bank
and then exist out of the Plaid modal that pops upConnect Manually
and enter the credentials for aPENDING
bank account from this SO postRequestor
step confirm that you get thePlease verify your name and date of birth. If the information is correct, click "Save & Continue
error onceTested On
Screenshots
Web
Screen.Recording.2021-08-27.at.12.26.41.PM.mov
Mobile Web
Desktop
iOS
Android