diff --git a/app/reducers/userInfo.jsx b/app/reducers/userInfo.jsx index 2c2175e..b888c89 100644 --- a/app/reducers/userInfo.jsx +++ b/app/reducers/userInfo.jsx @@ -3,10 +3,9 @@ const initState = {}; export default function userInfo(state = initState, action) { switch (action.type) { case 'USERINFO_UPDATE_CITYNAME': - return { - ...state, + return Object.assign({}, state, { cityName: action.cityName - }; + }) default: return state; }