final fixes

This commit is contained in:
Katie Kroell 2024-03-18 14:17:49 -04:00
parent 2fec3d5891
commit 506ef244f0
2 changed files with 7 additions and 2 deletions

View file

@ -39,6 +39,10 @@ const vehicleBannerStub = {
render: () => {}
};
const addToCalendarStub = {
render: () => {}
};
const initialStore = {
order: {
schedule: {
@ -127,7 +131,8 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRu
mountOptions.global.stubs = {
siteFooter: footerStub,
siteHeader: headerStub,
vehicleBanner: vehicleBannerStub
vehicleBanner: vehicleBannerStub,
addToCalendar: addToCalendarStub
};
const testingPinia = createTestingPinia({

View file

@ -195,7 +195,7 @@ export default {
},
providerFullAddress() {
// eslint-disable-next-line max-len
return `${this.providerAddress},<br/> ${this.providerCity}, ${this.providerState} ${this.providerZipCode}`;
return this.submittedOrder.serviceLocation?.provider?.address ? `${this.providerAddress},<br/> ${this.providerCity}, ${this.providerState} ${this.providerZipCode}` : '';
},
appointmentWordingText() {
switch (this.appointmentType) {