import axios from 'axios';

export const FETCH_SEARCH_RESULTS = 'fetch_search_results';

const ROOT_URL = 'https://earlybirdsearch.herokuapp.com/?';
// const LOCAL_HOST = 'http://localhost:3000/?'

export function fetchSearchResults(term, location) {
  const request = axios.get(`${ROOT_URL}business=${term}&location=${location}`);
  // const request = axios.get(`${LOCAL_HOST}business=${term}&location=${location}`);

  return {
    type: FETCH_SEARCH_RESULTS,
    payload: request
  }
}

import axios from 'axios';

export const FETCH_SEARCH_RESULTS = 'fetch_search_results';

const ROOT_URL = 'https://earlybirdsearch.herokuapp.com/?';

export function fetchSearchResults(term, location) {
  const request = axios.get(`${ROOT_URL}business=${term}&location=${location}`);

  return {
    type: FETCH_SEARCH_RESULTS,
    payload: request
  }
}

Remove commented out localhost code
Remove commented out localhost code
