Do not recommend offline methods when WooPayments is supported
This commit is contained in:
parent
ab7ed21159
commit
949a0db875
|
@ -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 }
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue