Merge pull request #656 from Safelite/defect/digital/SSR-1175

SSR-1175 Fix appointment details on payment-method not updating
This commit is contained in:
Josh Dassinger 2024-04-29 11:15:54 -05:00 committed by GitHub
commit b88a762667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -92,7 +92,7 @@ export default {
return useMainStore().order.serviceLocation.appointmentType; return useMainStore().order.serviceLocation.appointmentType;
}, },
customerInfo() { customerInfo() {
return useMainStore().order.customer; return useMainStore().order.contactInfo;
} }
}, },
methods: { methods: {

View file

@ -14,10 +14,10 @@ const testConstants = {
text: 'Sms' text: 'Sms'
} }
}, },
customer: { customerInfo: {
firstName: 'First', firstName: 'First',
lastName: 'Last', lastName: 'Last',
phoneNumber: '111-111-1111', servicePhone: '111-111-1111',
emailAddress: 'builddigitaltest@safelite.com', emailAddress: 'builddigitaltest@safelite.com',
isSmsOptIn: false isSmsOptIn: false
}, },
@ -33,11 +33,11 @@ function generateDefaultProps() {
return { return {
cmsWidgetName: 'CustomerWidget', cmsWidgetName: 'CustomerWidget',
customer: { customer: {
firstName: testConstants.customer.firstName, firstName: testConstants.customerInfo.firstName,
lastName: testConstants.customer.lastName, lastName: testConstants.customerInfo.lastName,
phoneNumber: testConstants.customer.phoneNumber, servicePhone: testConstants.customerInfo.servicePhone,
emailAddress: testConstants.customer.emailAddress, emailAddress: testConstants.customerInfo.emailAddress,
isSmsOptIn: testConstants.customer.isSmsOptIn isSmsOptIn: testConstants.customerInfo.isSmsOptIn
} }
}; };
} }

View file

@ -33,7 +33,7 @@ export default {
return this.customer?.emailAddress; return this.customer?.emailAddress;
}, },
phoneNumber() { phoneNumber() {
return this.customer?.phoneNumber; return this.customer?.servicePhone;
}, },
smsOptIn() { smsOptIn() {
return this.getCmsContent(this.cmsWidgetName, 'SubheaderText'); return this.getCmsContent(this.cmsWidgetName, 'SubheaderText');