From d1b82e9fe9256bbd01cc43f8e32ad12652ab55f2 Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 21:10:34 +0100 Subject: [PATCH] Debug: Add logging for custom photo prop --- src/components/DesignCanvas.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/DesignCanvas.tsx b/src/components/DesignCanvas.tsx index 880a6f5..8055aa9 100644 --- a/src/components/DesignCanvas.tsx +++ b/src/components/DesignCanvas.tsx @@ -504,6 +504,11 @@ export default function DesignCanvas({ designId?: string; customPhoto?: string; }) { + // Debug: Log if custom photo is received + if (customPhoto) { + console.log('✓ Custom photo received in DesignCanvas'); + } + const [color, setColor] = useState(initialColor ?? product.colors[0]); const [size, setSize] = useState(initialSize ?? (product.sizes[0] ?? null)); const [designWidthCm, setDesignWidthCm] = useState(null);