From 9ff0caff851b2cf3c282297a443c49c9b58c2049 Mon Sep 17 00:00:00 2001 From: rxshellg Date: Mon, 1 Dec 2025 17:17:13 -0500 Subject: [PATCH] Added debug logs to inspect OCR parsing issue --- src/pages/Review.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Review.tsx b/src/pages/Review.tsx index a3695d9..b7a3e83 100644 --- a/src/pages/Review.tsx +++ b/src/pages/Review.tsx @@ -7,6 +7,10 @@ const Review = () => { const [items, setItems] = useState([]); useEffect(() => { + console.log("OCR RAW TEXT:", JSON.stringify(ocrText)); + console.log("LINES:", ocrText.split(/\r?\n/)); + const parsed = parseItems(ocrText); + console.log("PARSED ITEMS:", parsed); setItems(parseItems(ocrText)); }, [ocrText]);