fixes changeTeam method

This commit is contained in:
zmagod 2017-09-18 15:16:07 +02:00
parent d1477179b2
commit b9492daa69

View file

@ -44,10 +44,10 @@ export function getTeamsList() {
};
}
export function changeTeam(teamId) {
export function changeTeam(team_id) {
return dispatch => {
axios
.post(CHANGE_TEAM_PATH, { team_id: 44 }, { withCredentials: true })
.post(CHANGE_TEAM_PATH, { team_id }, { withCredentials: true })
.then(response => {
const teams = response.data.teams.collection;
dispatch(addTeamsData(teams));