From 982897a808e25ef40a1763f1a2e297b682e144d2 Mon Sep 17 00:00:00 2001 From: DanielS Date: Tue, 11 Aug 2026 23:10:47 +0200 Subject: [PATCH] fix(wizard): clear basket items and configuration states after order completion --- shop/components/order-wizard.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index 2bb00d4..2bbc0f0 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -796,6 +796,14 @@ export function OrderWizard({ const result = await res.json() if (result.error) throw new Error(result.error) + // Warenkorb & Konfigurations-State vollständig leeren + setBasketItems([]) + setEditingIdx(null) + setDeviceName('') + setLicenseNumber('') + setOrderNotes('') + setModuleQuantities({}) + const firstOrderId = result.orders?.[0]?.id if (firstOrderId) { router.push(`/order/success?id=${firstOrderId}`)