mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 03:31:23 +00:00
♻️ enhan: flow input customer info at checkout
:%s
This commit is contained in:
@@ -79,8 +79,7 @@ const CheckoutInfo = ({ onViewCart }: CheckoutInfoProps) => {
|
||||
const getNote = (id: CheckoutStep) => {
|
||||
switch (id) {
|
||||
case CheckoutStep.CustomerInfo:
|
||||
// console.log("order info; ", order?.customer)
|
||||
if (order?.customer) {
|
||||
if (order?.customer?.emailAddress) {
|
||||
return `${order?.customer?.firstName} ${order?.customer?.lastName}, ${order?.customer?.emailAddress}`
|
||||
} else if (customer) {
|
||||
return `${customer.firstName} ${customer.lastName}, ${customer.emailAddress}`
|
||||
|
Reference in New Issue
Block a user