Add logging to check if designDraft exists in localStorage

Log whether designDraft is found when component mounts to help debug
why old designs persist after submission.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 18:54:29 +01:00
co-authored by Claude Haiku 4.5
parent 3a2bc24d69
commit f64462c5fe
+1
View File
@@ -545,6 +545,7 @@ export default function DesignCanvas({ product, isAdminEditing = false }: { prod
// Load design draft (saved when user tried to checkout without login)
const designDraft = localStorage.getItem(`designDraft_${product.id}`);
console.log(`🔍 Looking for designDraft_${product.id}:`, designDraft ? 'FOUND' : 'NOT FOUND');
if (designDraft) {
try {
const data = JSON.parse(designDraft);