Skip to content

Commit

Permalink
fix: spread the currentTeam object to not change the whole object
Browse files Browse the repository at this point in the history
Relates #43

Co-Authored-By: RamyAlshurafa <[email protected]>
  • Loading branch information
ashatat and RamyAlshurafa authored Jan 6, 2019
1 parent 03a4c93 commit 6688958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/reducers/teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const teamsReducer = (state = initialState, action) => {
return {
...state,
currentTeam: {
...state.currentTeam
members: action.data,
},
};
Expand Down

0 comments on commit 6688958

Please sign in to comment.