src/applications/caregivers/actions/fetchMapBoxGeocoding.js
Function fetchMapBoxGeocoding
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchMapBoxGeocoding = async (query, client = null) => {
if (!query) {
return {
type: 'SEARCH_FAILED',
errorMessage: content['error--facility-search-cancelled'],