{
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 5497787fb..a961551bc 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
@@ -38,7 +38,7 @@ const StepProducts = () => {
};
initChoices();
- }, [ canUseSubscriptions, optionState, products, setProducts ] );
+ }, [ canUseSubscriptions, isCasualSeller ] );
const handleChange = ( key, checked ) => {
const getNewValue = () => {
@@ -48,7 +48,7 @@ const StepProducts = () => {
return products.filter( ( val ) => val !== key );
};
- setProducts( getNewValue() );
+ setProducts( getNewValue(), 'user' );
};
const productChoicesFull = [
{
diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js
index 47b846889..c8d8c8de4 100644
--- a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js
+++ b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js
@@ -14,7 +14,6 @@ import { usePaymentConfig } from '../hooks/usePaymentConfig';
const StepWelcome = ( { setStep, currentStep } ) => {
const { storeCountry, ownBrandOnly } = CommonHooks.useWooSettings();
const { canUseCardPayments, canUseFastlane } = OnboardingHooks.useFlags();
- const { isCasualSeller } = OnboardingHooks.useBusiness();
const { icons } = usePaymentConfig(
storeCountry,
@@ -34,6 +33,11 @@ const StepWelcome = ( { setStep, currentStep } ) => {
'woocommerce-paypal-payments'
);
+ const handleActivatePayPal = () => {
+ const nextStep = currentStep + 1;
+ setStep( nextStep, 'user' );
+ };
+
return (
{