//constants
import * as types from './../constants/actionTypes'

const initialState = {
    athlete: {}
}

export default function reducer(state = initialState, action) {

    switch (action.type) {
        case types.GET_ATHLETE_DETAILS:

            return Object.assign({}, state, {
                athlete: action.details
            });

        // ...other actions

        default:
            return state;
    }
}
//constants
import {GET_ATHLETE_DETAILS} from './../constants/actionTypes'

const initialState = {
    athlete: {}
};

export default function reducer(state = initialState, action) {

    switch (action.type) {
        case GET_ATHLETE_DETAILS:

            return Object.assign({}, state, {
                athlete: action.details
            });

        // ...other actions

        default:
            return state;
    }
}
fix import