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:
commit
b88a762667
3 changed files with 9 additions and 9 deletions
|
|
@ -92,7 +92,7 @@ export default {
|
|||
return useMainStore().order.serviceLocation.appointmentType;
|
||||
},
|
||||
customerInfo() {
|
||||
return useMainStore().order.customer;
|
||||
return useMainStore().order.contactInfo;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue