diff --git a/src/libs/actions/PaymentMethods.js b/src/libs/actions/PaymentMethods.js index c2d278c46476..dac287fd6f6e 100644 --- a/src/libs/actions/PaymentMethods.js +++ b/src/libs/actions/PaymentMethods.js @@ -1,7 +1,6 @@ import _ from 'underscore'; import {createRef} from 'react'; import lodashGet from 'lodash/get'; -import lodashMerge from 'lodash/merge'; import Onyx from 'react-native-onyx'; import ONYXKEYS from '../../ONYXKEYS'; import * as DeprecatedAPI from '../deprecatedAPI'; @@ -316,7 +315,7 @@ function dismissSuccessfulTransferBalancePage() { * @returns {Boolean} */ function hasPaymentMethodError(bankList, cardList) { - const combinedPaymentMethods = lodashMerge(bankList, cardList); + const combinedPaymentMethods = {...bankList, ...cardList}; return _.some(combinedPaymentMethods, item => !_.isEmpty(item.errors)); }