diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepProducts.js b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepProducts.js index 9f7023850..a697e759a 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepProducts.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepProducts.js @@ -76,7 +76,17 @@ const StepProducts = () => { 'woocommerce-paypal-payments' ), isDisabled: isCasualSeller, - contents: , + contents: ( + /* + * Note: The link should be only displayed if the subscriptions plugin is not installed. + * But when the plugin is not active, this option is completely hidden; + * This means: In the current configuration, we never show the link. + */ + + ), }, ]; return ( @@ -117,14 +127,19 @@ const DetailsPhysical = () => ( ); -const DetailsSubscriptions = ( { showNotice } ) => ( +const DetailsSubscriptions = ( { showLink, showNotice } ) => ( <> - - { __( 'WooCommerce Subscriptions', 'woocommerce-paypal-payments' ) } - + { showLink && ( + + { __( + 'WooCommerce Subscriptions', + 'woocommerce-paypal-payments' + ) } + + ) } { showNotice && (

{ __(