diff --git a/src/pages/settings/Payments/PaymentMethodList.js b/src/pages/settings/Payments/PaymentMethodList.js index f4f7136c5547..9c7ff5a32d23 100644 --- a/src/pages/settings/Payments/PaymentMethodList.js +++ b/src/pages/settings/Payments/PaymentMethodList.js @@ -3,6 +3,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {FlatList, Text} from 'react-native'; import {withOnyx} from 'react-native-onyx'; +import lodashGet from 'lodash/get'; import styles from '../../../styles/styles'; import MenuItem from '../../../components/MenuItem'; import compose from '../../../libs/compose'; @@ -87,7 +88,7 @@ class PaymentMethodList extends Component { bankAccount.accountNumber.slice(-4) }` : null; - const {icon, iconSize} = getBankIcon(bankAccount.additionalData.bankName); + const {icon, iconSize} = getBankIcon(lodashGet(bankAccount, 'additionalData.bankName', '')); combinedPaymentMethods.push({ type: MENU_ITEM, title: bankAccount.addressName,