Skip to content

Commit

Permalink
Merge pull request Expensify#6803 from Expensify/cmartins-manualAddress
Browse files Browse the repository at this point in the history
Fix broken manual address on Additional Information page
  • Loading branch information
Jag96 authored Dec 16, 2021
2 parents 736de1a + ac0ca74 commit 0b1e5d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/ReimbursementAccount/ACHContractStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ class ACHContractStep extends React.Component {
const renamedInputKey = lodashGet(renamedFields, inputKey, inputKey);
const beneficialOwners = [...prevState.beneficialOwners];
beneficialOwners[ownerIndex] = {...beneficialOwners[ownerIndex], [renamedInputKey]: value};
BankAccounts.updateReimbursementAccountDraft({beneficialOwners});
if (inputKey !== 'manualAddress') {
BankAccounts.updateReimbursementAccountDraft({beneficialOwners});
}
return {beneficialOwners};
});

Expand Down Expand Up @@ -243,6 +245,7 @@ class ACHContractStep extends React.Component {
zipCode: owner.zipCode || '',
dob: owner.dob || '',
ssnLast4: owner.ssnLast4 || '',
manualAddress: owner.manualAddress,
}}
errors={lodashGet(this.getErrors(), `beneficialOwnersErrors[${index}]`, {})}
/>
Expand Down

0 comments on commit 0b1e5d8

Please sign in to comment.