mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Rename conditional property
This commit is contained in:
parent
2bcef52025
commit
fa60a38c22
5 changed files with 18 additions and 18 deletions
|
@ -59,8 +59,8 @@ export const getSteps = ( flags ) => {
|
|||
const steps = filterSteps( ALL_STEPS, [
|
||||
// Casual selling: Unlock the "Personal Account" choice.
|
||||
( step ) => flags.canUseCasualSelling || step.id !== 'business',
|
||||
// Hide methods screen when WooPayments is active.
|
||||
( step ) => ! flags.isWooPaymentsActive || step.id !== 'methods',
|
||||
// Skip payment methods screen.
|
||||
( step ) => ! flags.shouldSkipPaymentMethods || step.id !== 'methods',
|
||||
] );
|
||||
|
||||
const totalStepsCount = steps.length;
|
||||
|
|
|
@ -23,7 +23,7 @@ const defaultTransient = Object.freeze( {
|
|||
canUseVaulting: false,
|
||||
canUseCardPayments: false,
|
||||
canUseSubscriptions: false,
|
||||
isWooPaymentsActive: false,
|
||||
shouldSkipPaymentMethods: false,
|
||||
} ),
|
||||
} );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue