From f8f4933ca15abdae08f08d73cd26d6de3e78bc89 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 9 Jan 2025 21:44:47 -0600 Subject: [PATCH] fix: bugfix when new order with no pending customer --- src/sideshow/web/templates/orders/create.mako | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sideshow/web/templates/orders/create.mako b/src/sideshow/web/templates/orders/create.mako index 72345b5..7ed78db 100644 --- a/src/sideshow/web/templates/orders/create.mako +++ b/src/sideshow/web/templates/orders/create.mako @@ -836,11 +836,11 @@ orderEmailAddress: ${json.dumps(email_address)|n}, refreshingCustomer: false, - newCustomerFullName: ${json.dumps(new_customer_full_name)|n}, - newCustomerFirstName: ${json.dumps(new_customer_first_name)|n}, - newCustomerLastName: ${json.dumps(new_customer_last_name)|n}, - newCustomerPhone: ${json.dumps(new_customer_phone)|n}, - newCustomerEmail: ${json.dumps(new_customer_email)|n}, + newCustomerFullName: ${json.dumps(new_customer_full_name or None)|n}, + newCustomerFirstName: ${json.dumps(new_customer_first_name or None)|n}, + newCustomerLastName: ${json.dumps(new_customer_last_name or None)|n}, + newCustomerPhone: ${json.dumps(new_customer_phone or None)|n}, + newCustomerEmail: ${json.dumps(new_customer_email or None)|n}, editNewCustomerShowDialog: false, editNewCustomerFirstName: null,