Skip to content

Commit

Permalink
Merge pull request #16607 from Expensify/cmartins-fixPlaidAccount
Browse files Browse the repository at this point in the history
Get PlaidData values

(cherry picked from commit d0d9f14)
  • Loading branch information
Julesssss authored and OSBotify committed Mar 28, 2023
1 parent 5e90e00 commit 3b7af64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/BankAccountPlaidStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BankAccountPlaidStep extends React.Component {

submit() {
const selectedPlaidBankAccount = _.findWhere(lodashGet(this.props.plaidData, 'bankAccounts', []), {
plaidAccountID: this.props.getDefaultStateForField('plaidAccountID'),
plaidAccountID: lodashGet(this.props.reimbursementAccountDraft, 'plaidAccountID', ''),
});

const bankAccountData = {
Expand All @@ -65,7 +65,7 @@ class BankAccountPlaidStep extends React.Component {

render() {
const bankAccountID = lodashGet(this.props.reimbursementAccount, 'achData.bankAccountID') || 0;
const selectedPlaidAccountID = this.props.getDefaultStateForField('plaidAccountID', '');
const selectedPlaidAccountID = lodashGet(this.props.reimbursementAccountDraft, 'plaidAccountID', '');

return (
<ScreenWrapper includeSafeAreaPaddingBottom={false}>
Expand Down

0 comments on commit 3b7af64

Please sign in to comment.