Merge pull request #2879 from woocommerce/PCP-3978-OPM-default-to-null

New Settings UI: Set Optional Payment Methods default to null (3978)
This commit is contained in:
Emili Castells 2024-12-05 14:53:49 +01:00 committed by GitHub
commit ebc53b7bfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ const defaultPersistent = {
completed: false, completed: false,
step: 0, step: 0,
isCasualSeller: null, // null value will uncheck both options in the UI. isCasualSeller: null, // null value will uncheck both options in the UI.
areOptionalPaymentMethodsEnabled: true, areOptionalPaymentMethodsEnabled: null,
products: [], products: [],
}; };

View file

@ -67,7 +67,7 @@ class OnboardingProfile extends AbstractDataModel {
'completed' => false, 'completed' => false,
'step' => 0, 'step' => 0,
'is_casual_seller' => null, 'is_casual_seller' => null,
'are_optional_payment_methods_enabled' => true, 'are_optional_payment_methods_enabled' => null,
'products' => array(), 'products' => array(),
); );
} }