️ Restore the payment method screen for all users

This commit is contained in:
Philipp Stracker 2025-02-07 19:01:40 +01:00
parent 53c90537f5
commit 7369b8dbda
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -56,14 +56,12 @@ const filterSteps = ( steps, conditions ) => {
);
};
export const getSteps = ( flags, isCasualSeller ) => {
export const getSteps = ( flags ) => {
const steps = filterSteps( ALL_STEPS, [
// Casual selling: Unlock the "Personal Account" choice.
( step ) => flags.canUseCasualSelling || step.id !== 'business',
// Card payments: Unlocks the "Extended Checkout" choice.
( step ) => flags.canUseCardPayments || step.id !== 'methods',
// Card payments are only available for business sellers.
( step ) => ! isCasualSeller || step.id !== 'methods',
] );
const totalStepsCount = steps.length;

View file

@ -6,9 +6,8 @@ import OnboardingNavigation from './Components/Navigation';
const OnboardingScreen = () => {
const { step, setStep, flags } = OnboardingHooks.useSteps();
const { isCasualSeller } = OnboardingHooks.useBusiness();
const Steps = getSteps( flags, isCasualSeller );
const Steps = getSteps( flags );
const currentStep = getCurrentStep( step, Steps );
const handleNext = () => setStep( currentStep.nextStep );