diff --git a/web/src/components/modals/AuditFlow.tsx b/web/src/components/modals/AuditFlow.tsx index 09bc148..552accb 100644 --- a/web/src/components/modals/AuditFlow.tsx +++ b/web/src/components/modals/AuditFlow.tsx @@ -79,12 +79,6 @@ export function AuditFlow({ const handleScan = (result: ScanResult) => { if (result.kind === "item") { setItemId(result.item.id); - } else { - // SKU scan — pick the most recent active instance of that product. - const candidate = overdueFirst - .filter((i) => i.productId === result.product.id) - .sort((a, b) => +new Date(b.purchaseDate) - +new Date(a.purchaseDate))[0]; - if (candidate) setItemId(candidate.id); } }; @@ -114,33 +108,16 @@ export function AuditFlow({ boxShadow: "var(--shadow-lg)", }} > - +
-
- - - -
-