Fix undefined customerName variable in design submission

Changed customerName to customer.name to use the actual customer object.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 18:52:44 +01:00
co-authored by Claude Haiku 4.5
parent 8cba443f5a
commit 3a2bc24d69
+1 -1
View File
@@ -63,7 +63,7 @@ export async function POST(req: Request) {
const adminLink = `${process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'}/admin/designs/${design.id}`;
await sendDesignSubmissionNotification({
customerName,
customerName: customer.name,
productName: product.name,
adminLink,
});