From 2f32d80e9e675224e989335e24a354920195f56e Mon Sep 17 00:00:00 2001 From: DanielS Date: Tue, 11 Aug 2026 23:01:50 +0200 Subject: [PATCH] fix(wizard): reset active category to first category when entering step 3 --- shop/components/order-wizard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index bb60343..2bb00d4 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -241,10 +241,10 @@ export function OrderWizard({ }, [categories, selectedBillingInterval]) useEffect(() => { - if (visibleCategories.length > 0 && !visibleCategories.some(c => c.id === activeCategoryId)) { + if (step === 3 && visibleCategories.length > 0) { setActiveCategoryId(visibleCategories[0].id) } - }, [visibleCategories, activeCategoryId]) + }, [step, visibleCategories]) // Endkunden Filterung const filteredEndCustomers = useMemo(() => {