[CP Staging] save routingNumber and accountNumber in connectBankAccountManually#11556
[CP Staging] save routingNumber and accountNumber in connectBankAccountManually#11556luacmartins merged 4 commits intomainfrom
Conversation
luacmartins
left a comment
There was a problem hiding this comment.
Hmm I think this came from the Form refactor actually. Now the draft values are automatically saved, but under the reimbursementAccountDraftValues key instead of reimbursementAccountDraft.
Instead of merging them here, we should probably use the new Onyx key.
|
Update: removed the previous Onyx.merge and use |
|
|
luacmartins
left a comment
There was a problem hiding this comment.
LGTM and tests well! Thanks for the fix!
|
@luacmartins looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
Tests passed. Removing |
…tStep2 [CP Staging] save routingNumber and accountNumber in connectBankAccountManually (cherry picked from commit 6c089c8)
…-11556 🍒 Cherry pick PR #11556 to staging 🍒
|
🚀 Cherry-picked to staging by @luacmartins in version: 1.2.11-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by @AndrewGable in version: 1.2.11-4 🚀
|
There was a problem hiding this comment.
@NikkiWines noticed that there is currently a bug with the Chase flow via Plaid. Did a bit of digging and it's because we have the accountNumber and routingNumber fields in both reimbursementAccountDraft and reimbursementAccountDraftValues:
In the Chase flow, we set the accountNumber and routingNumber to empty strings here. So over here, the keys from reimbursementAccountDraftValues are being overwritten by the empty keys from reimbursementAccountDraft
Leading to the same error "Your account number and routing number cannot be the same".
Just want to clarify why we need reimbursementAccountDraftValues? reimbursementAccountDraft is the key we've been using to store the form data entered by the user.
I'm thinking we only use one key either reimbursementAccountDraftValues OR reimbursementAccountDraft.
…ankAccountStep2 [CP Staging] save routingNumber and accountNumber in connectBankAccountManually
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |

cc @luacmartins since this can be related to one command you refactored
Details
Found this issue while I was trying to add a VBA for the workspace.
Noticed that step 2 form (
UpdateCompanyInformationForBankAccount) in the VBA for Workspace was throwing an error because it's expecting therountingNumberandaccountNumberhere, but those values are empty because are captured in step 1 form (ConnectBankAccountManually) but not saved locally for the step 2.Fixed Issues
$ #11510
Tests
Workspace > Reimburse expenses > Connect bank account011401533as routing number and1111222233331111as account numberSave & continuebuttonSave and continuePR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Follow the same steps from
TestsectionScreenshots
Web
Screen.Recording.2022-10-04.at.12.59.56.mov
Mobile Web - Chrome
Screen.Recording.2022-10-04.at.13.23.29.mov
Mobile Web - Safari
Screen.Recording.2022-10-04.at.13.34.06.mov
Desktop
Screen.Recording.2022-10-04.at.13.42.44.mov
iOS
Screen.Recording.2022-10-04.at.13.42.44.mov
Android