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

View file

@ -195,7 +195,7 @@ export default {
}, },
providerFullAddress() { providerFullAddress() {
// eslint-disable-next-line max-len // 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() { appointmentWordingText() {
switch (this.appointmentType) { switch (this.appointmentType) {