diff --git a/client/src/actions/index.js b/client/src/actions/index.js index 74ebb9f..5239f10 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -1,24 +1,21 @@ - -import { FETCH_CATEGORY, CHOSEN_SYMPTOMS, FETCH_SYMPTOMS,SELECT_LOCATION } from "./types"; - +import { FETCH_CATEGORY, CHOSEN_SYMPTOMS, FETCH_SYMPTOMS, SELECT_LOCATION } from './types'; export const chooseCategory = category => { return { type: FETCH_CATEGORY, payload: category }; }; - export const chooseLocation = location => { return { type: SELECT_LOCATION, payload: location }; +}; export const chooseSymptoms = symptoms => { const chosenSymptoms = Object.keys(symptoms); const symptomsSelected = chosenSymptoms.filter(item => { return symptoms[item] === true; - }) + }); return { type: CHOSEN_SYMPTOMS, payload: symptomsSelected }; }; export const renderSymptoms = category => { - return { type: FETCH_SYMPTOMS, payload: category } - + return { type: FETCH_SYMPTOMS, payload: category }; }; diff --git a/client/src/containers/LocationForm.js b/client/src/containers/LocationForm.js index 5534bc7..4dcfcfa 100644 --- a/client/src/containers/LocationForm.js +++ b/client/src/containers/LocationForm.js @@ -47,7 +47,7 @@ class LocationForm extends Component { options={locationdata} /> -