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:
co-authored by
Claude Haiku 4.5
parent
3a2bc24d69
commit
f64462c5fe
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user