{"size": 404, "ext": "js", "max_stars_repo_path": "src/reducers/UserReducer.js", "max_stars_repo_name": "batr-sweden/batrappsweden", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/reducers/UserReducer.js", "max_issues_repo_name": "batr-sweden/batrappsweden", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/reducers/UserReducer.js", "max_forks_repo_name": "batr-sweden/batrappsweden", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.3636363636, "max_line_length": 52, "alphanum_fraction": 0.6361386139}
import {
  USER_FETCH_PHONE,
  USER_SIGN_OUT
} from '../actions/types';

const INITIAL_STATE = {
  phoneNum: ''
};

export default (state = INITIAL_STATE, action) => {
  console.log(action);

  switch (action.type) {
    case USER_FETCH_PHONE:
      return { ...state, phoneNum: action.payload };
    case USER_SIGN_OUT:
      return { ...state, ...INITIAL_STATE };
    default:
    return state;
  }
};
