From 98b1301e966e22ff785fef3e54bc19a6ae1c0d45 Mon Sep 17 00:00:00 2001 From: DanielS Date: Thu, 9 Jul 2026 23:35:59 +0200 Subject: [PATCH] fix: resolve typescript implicit any type errors in order-wizard.tsx --- shop/components/order-wizard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index feef170..45f36b8 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -1444,7 +1444,7 @@ export function OrderWizard({ const sel = item.selections[cat.id] const selectedProds: Product[] = [] if (cat.allow_multiselect && sel?.productIds) { - sel.productIds.forEach(pId => { + sel.productIds.forEach((pId: string) => { const p = products.find(prod => prod.id === pId) if (p) selectedProds.push(p) }) @@ -1469,7 +1469,7 @@ export function OrderWizard({ const actualPrice = isFree ? 0 : prod.base_price const catTotal = Number(actualPrice) + - (sel?.moduleIds?.reduce((acc, mId) => { + (sel?.moduleIds?.reduce((acc: number, mId: string) => { const mod = prod.modules?.find(m => m.id === mId) const qty = item.moduleQuantities[mId] || 1 return acc + (Number(mod?.price ?? 0) * qty) @@ -1488,7 +1488,7 @@ export function OrderWizard({ {sel?.moduleIds && sel.moduleIds.length > 0 && (

Module: {sel.moduleIds - .map(id => { + .map((id: string) => { const mod = prod.modules?.find(m => m.id === id) const qty = item.moduleQuantities[id] || 1 return mod ? `${mod.name}${mod.has_quantity ? ` (x${qty})` : ''}` : ''