We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32319ed commit 887cb05Copy full SHA for 887cb05
1 file changed
src/hooks/usePaymentOptions.ts
@@ -115,7 +115,7 @@ function usePaymentOptions({
115
const isInvoiceReport = (!isEmptyObject(iouReport) && isInvoiceReportUtil(iouReport)) || false;
116
const shouldShowPayWithExpensifyOption = !shouldHidePaymentOptions;
117
const shouldShowPayElsewhereOption = !shouldHidePaymentOptions && !isInvoiceReport;
118
- const hasPersonalBankAccount = Object.values(bankAccountList).some((account) => account.accountData?.type === CONST.BANK_ACCOUNT.TYPE.PERSONAL);
+ const hasPersonalBankAccount = Object.values(bankAccountList).some((account) => account?.accountData?.type === CONST.BANK_ACCOUNT.TYPE.PERSONAL);
119
const paymentButtonOptions = useMemo(() => {
120
const buttonOptions = [];
121
const isExpenseReport = isExpenseReportUtil(iouReport);
0 commit comments