Don't recommend additional gateways when WCPay is present

This commit is contained in:
Vlad Olaru 2024-09-19 13:10:18 +03:00
parent 67f89285d7
commit ddf430ffdc
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ export const PaymentGatewaySuggestions = ( { onComplete, query } ) => {
<List <List
heading={ additionalSectionHeading } heading={ additionalSectionHeading }
headingDescription={ additionalSectionHeadingDescription } headingDescription={ additionalSectionHeadingDescription }
recommendation={ recommendation } // No recommendation if WooPayments is supported (and displayed).
recommendation={ isWCPaySupported ? false : recommendation }
paymentGateways={ additionalGateways } paymentGateways={ additionalGateways }
markConfigured={ markConfigured } markConfigured={ markConfigured }
footerLink={ footerLink={