Merge pull request #2835 from Safelite/feature/CASH-1348-ProdMerge

CASH-1348 - Fixed merging issues for inShopProviders property
This commit is contained in:
mvalaiyapathi 2025-09-11 11:05:55 -04:00 committed by GitHub
commit 2b2e78a7b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -291,7 +291,7 @@ export default {
this.$store.getters.order.vehicle.carId,
"service-location"
);
if (!closestShops || closestShops.providers?.length === 0) {
if (!closestShops || closestShops.inShopProviders?.length === 0) {
this.isLoading = false;
this.displayNoServiceAlert = true;
return null;

View file

@ -496,7 +496,10 @@ export default {
{ zip: this.serviceZipCode, carId: this.carId },
"vehicle"
);
if (!closestShops?.data?.providers || closestShops.data.providers.length === 0) {
if (
!closestShops?.data?.inShopProviders ||
closestShops.data.inShopProviders.length === 0
) {
this.displayNoServiceAlert = true;
if (store.getters.externalParameterState?.isExternalParameter) {
return baseMixin.methods.ResetExternalParamsAndHideModal();