Skip to content

Commit

Permalink
fix(web): code factor, put bracket into switch bc of many statements
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Apr 11, 2023
1 parent 2f2c737 commit ecff1ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/state/organizationsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function organizationsReducer(
action
) {
switch (action.type) {
case CREATE_TEAM_SUCCESS:
case CREATE_TEAM_SUCCESS: {
const {team} = action.payload.team;
if (!state.organizationInDetail || state.organizationInDetail.id !== team.organization.id) {
return {
Expand All @@ -42,6 +42,7 @@ export default function organizationsReducer(
},
};
}
}
case SET_ACTIVE_ORGANIZATION:
return {
...state,
Expand Down

0 comments on commit ecff1ca

Please sign in to comment.