diff --git a/src/applications/facility-locator/actions/mapbox/genBBoxFromAddress.js b/src/applications/facility-locator/actions/mapbox/genBBoxFromAddress.js index 4e903ccf76a8..c49855be52e3 100644 --- a/src/applications/facility-locator/actions/mapbox/genBBoxFromAddress.js +++ b/src/applications/facility-locator/actions/mapbox/genBBoxFromAddress.js @@ -92,7 +92,9 @@ export const genBBoxFromAddress = (query, expandedRadius = false) => { ]; } const radius = radiusFromBoundingBox( - features, + features?.[0]?.bbox + ? features + : [{ ...features[0], bbox: minBounds }], query?.facilityType === 'provider', ); dispatch({ diff --git a/src/applications/facility-locator/tests/e2e/map-zoom.cypress.spec.js b/src/applications/facility-locator/tests/e2e/map-zoom.cypress.spec.js index 57f624987d0d..324ded92f8ff 100644 --- a/src/applications/facility-locator/tests/e2e/map-zoom.cypress.spec.js +++ b/src/applications/facility-locator/tests/e2e/map-zoom.cypress.spec.js @@ -4,7 +4,7 @@ Cypress.Commands.add('verifySearchArea', () => { const clickInterval = 10; // Zoom in - [...Array(5)].forEach(_ => + [...Array(15)].forEach(_ => // eslint-disable-next-line cypress/no-unnecessary-waiting cy .get('.mapboxgl-ctrl-zoom-in')