diff --git a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue index 0d7a82248..96977dd2b 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue @@ -169,17 +169,7 @@ export default { return this.getCmsContent(this.linkWidgetName, "HeaderText"); }, mobileLocationLinkText() { - if ( - this.addressModel.streetAddress && - this.addressModel.streetAddress !== "" && - this.addressModel.city && - this.addressModel.city !== "" && - this.addressModel.state && - this.addressModel.state !== "" && - this.addressModel.zipCode && - this.addressModel.zipCode !== "" && - this.internalModel.isVehicleProtected !== null - ) { + if (this.isMobileAddressComplete()) { return `${this.addressModel.streetAddress}\n${this.addressModel.city}, ${this.addressModel.state} ${this.addressModel.zipCode}`; } return this.getCmsContent(this.linkWidgetName, "BodyText"); @@ -218,6 +208,19 @@ export default { }, }, methods: { + isMobileAddressComplete() { + return ( + this.addressModel.streetAddress && + this.addressModel.streetAddress !== "" && + this.addressModel.city && + this.addressModel.city !== "" && + this.addressModel.state && + this.addressModel.state !== "" && + this.addressModel.zipCode && + this.addressModel.zipCode !== "" && + this.internalModel.isVehicleProtected !== null + ); + }, openModal() { this.modal.openModal(); }, diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index a85a5bd17..02066d97e 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -88,7 +88,7 @@