Skip to content

Commit

Permalink
Merge pull request #28 from ymaheshwari1/admin-helper/fix-stores-error
Browse files Browse the repository at this point in the history
Fixed: issue of stores not being searched even when entering a valid zipCode
  • Loading branch information
ravilodhi authored Aug 2, 2023
2 parents 65bd5d5 + 59bd8f6 commit 0616c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/PickupLocationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default defineComponent({
try {
const storeLookupResp = await FacilityService.getStores(payload)
if (!storeLookupResp.data.response.numFound) return [];
if (!storeLookupResp.data.response?.numFound) return [];
return storeLookupResp.data.response.docs
} catch (error) {
console.error(error)
Expand All @@ -145,7 +145,7 @@ export default defineComponent({
}
})
if (!locationResp.response) return '';
if (!locationResp.data.response?.numFound) return '';
return locationResp.data.response.docs[0].location
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 0616c2c

Please sign in to comment.