diff --git a/src/store/index.js b/src/store/index.js index ba0bae56..d27f0f2d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1660,8 +1660,8 @@ export const useMainStore = defineStore({ order.contactInfo.firstName = data?.customer?.firstName; order.contactInfo.lastName = data?.customer?.lastName; order.contactInfo.emailAddress = data?.customer?.emailAddress; - order.contactInfo.extension = data.customer.homePhone?.slice(10); - order.contactInfo.homePhone = data.customer.homePhone?.slice(0, 10); + order.contactInfo.extension = data?.customer?.homePhone?.slice(10); + order.contactInfo.homePhone = data?.customer?.homePhone?.slice(0, 10); order.contactInfo.servicePhone = data?.customer?.servicePhone; order.contactInfo.alternativePhone = data?.customer?.alternativePhone; order.contactInfo.requestTextUpdates = data?.customer?.isSmsOptIn;