Rename conditional property

This commit is contained in:
Emili Castells Guasch 2025-02-25 14:50:09 +01:00
parent 2bcef52025
commit fa60a38c22
5 changed files with 18 additions and 18 deletions

View file

@ -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;

View file

@ -23,7 +23,7 @@ const defaultTransient = Object.freeze( {
canUseVaulting: false,
canUseCardPayments: false,
canUseSubscriptions: false,
isWooPaymentsActive: false,
shouldSkipPaymentMethods: false,
} ),
} );