diff --git a/react/BankInvoiceSection.tsx b/react/BankInvoiceSection.tsx index 3c9f9d46..36338604 100644 --- a/react/BankInvoiceSection.tsx +++ b/react/BankInvoiceSection.tsx @@ -33,9 +33,8 @@ const BankInvoiceSection: FC = () => { .flat() .find(({ paymentGroup, url }) => paymentGroup === 'bankInvoice' && !!url) - if (!bankInvoice) return null - - const { url, paymentSystemName, barCodeNumber } = bankInvoice + const { url, paymentSystemName, barCodeNumber } = + bankInvoice ?? paymentMethodsFromOrder[0] const isURLValid = url && !url.match(/(\*.\*.)+\*\w\*/g) if (!isURLValid && !barCodeNumber) {