diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index 6e60846..c69d035 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -543,13 +543,22 @@ export function OrderWizard({ addToBasket() } } + setDirection(1) setStep(s => s + 1) } const prevStep = () => { + setDirection(-1) setStep(s => s - 1) } + const goToStep = (targetStep: number) => { + if (targetStep < step) { + setDirection(-1) + setStep(targetStep) + } + } + function handleBillingIntervalChange(val: 'one_time' | 'monthly') { setSelectedBillingInterval(val) if (val === 'monthly') { @@ -866,7 +875,7 @@ export function OrderWizard({ Bestell-Wizard
-