Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: issue of stores not being searched even when entering a valid zipCode #28

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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