Do not recommend offline methods when WooPayments is supported

This commit is contained in:
Vlad Olaru 2024-09-19 19:51:18 +03:00
parent ab7ed21159
commit 949a0db875
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ export const PaymentGatewaySuggestions = ( { onComplete, query } ) => {
const offlineSection = !! offlineGateways.length && ( const offlineSection = !! offlineGateways.length && (
<List <List
heading={ __( 'Offline payment methods', 'woocommerce' ) } heading={ __( 'Offline payment methods', 'woocommerce' ) }
recommendation={ recommendation } // No recommendation if WooPayments is supported (and displayed).
recommendation={ isWCPaySupported ? false : recommendation }
paymentGateways={ offlineGateways } paymentGateways={ offlineGateways }
markConfigured={ markConfigured } markConfigured={ markConfigured }
/> />