From 72555e5b7f8f463161df681012b008dfe96470bd Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Mon, 29 Apr 2024 10:39:26 -0500 Subject: [PATCH 1/2] SSR-1175 Fix appointment details on payment-method not updating --- src/layouts/payment-method/review-dropdown/review-dropdown.vue | 2 +- .../review-sections/customer-review/customer-review.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/payment-method/review-dropdown/review-dropdown.vue b/src/layouts/payment-method/review-dropdown/review-dropdown.vue index 0a78527d..6979983b 100644 --- a/src/layouts/payment-method/review-dropdown/review-dropdown.vue +++ b/src/layouts/payment-method/review-dropdown/review-dropdown.vue @@ -92,7 +92,7 @@ export default { return useMainStore().order.serviceLocation.appointmentType; }, customerInfo() { - return useMainStore().order.customer; + return useMainStore().order.contactInfo; } }, methods: { diff --git a/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.vue b/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.vue index 3d92e63c..d3f5b27d 100644 --- a/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.vue +++ b/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.vue @@ -33,7 +33,7 @@ export default { return this.customer?.emailAddress; }, phoneNumber() { - return this.customer?.phoneNumber; + return this.customer?.servicePhone; }, smsOptIn() { return this.getCmsContent(this.cmsWidgetName, 'SubheaderText'); From fc0059acd05eae6208709a185c379ab1af2a331d Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Mon, 29 Apr 2024 11:02:31 -0500 Subject: [PATCH 2/2] SSR-1175 Fix customer-review unit test --- .../customer-review/customer-review.spec.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.spec.js b/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.spec.js index 7d523f9d..17653251 100644 --- a/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.spec.js +++ b/src/layouts/payment-method/review-dropdown/review-sections/customer-review/customer-review.spec.js @@ -14,10 +14,10 @@ const testConstants = { text: 'Sms' } }, - customer: { + customerInfo: { firstName: 'First', lastName: 'Last', - phoneNumber: '111-111-1111', + servicePhone: '111-111-1111', emailAddress: 'builddigitaltest@safelite.com', isSmsOptIn: false }, @@ -33,11 +33,11 @@ function generateDefaultProps() { return { cmsWidgetName: 'CustomerWidget', customer: { - firstName: testConstants.customer.firstName, - lastName: testConstants.customer.lastName, - phoneNumber: testConstants.customer.phoneNumber, - emailAddress: testConstants.customer.emailAddress, - isSmsOptIn: testConstants.customer.isSmsOptIn + firstName: testConstants.customerInfo.firstName, + lastName: testConstants.customerInfo.lastName, + servicePhone: testConstants.customerInfo.servicePhone, + emailAddress: testConstants.customerInfo.emailAddress, + isSmsOptIn: testConstants.customerInfo.isSmsOptIn } }; }