🐛 Fix the onboarding wizard bug

This commit is contained in:
Philipp Stracker 2025-04-04 14:35:19 +02:00 committed by Emili Castells Guasch
parent d29a6ea125
commit 2cb58cd15d
No known key found for this signature in database

View file

@ -65,8 +65,9 @@ export const getSteps = ( flags ) => {
( step ) => flags.canUseCasualSelling || step.id !== 'business',
// Skip payment methods screen.
( step ) =>
! flags.shouldSkipPaymentMethods &&
! ( ownBrandOnly && isCasualSeller && step.id === 'methods' ), // personal user in branded-only mode.
step.id !== 'methods' ||
( ! flags.shouldSkipPaymentMethods &&
! ( ownBrandOnly && isCasualSeller ) ),
] );
const totalStepsCount = steps.length;