Skip to content

Commit

Permalink
feat: add new case: handleLanguagesState
Browse files Browse the repository at this point in the history
  • Loading branch information
guicoelhodev committed Jan 2, 2023
1 parent a91b3a1 commit 49dfe95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reducers/globalComponentsReducer/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export const globalComponentsReducer = (
case ActionsGlobalComponents.HANDLE_ADD_FRIEND: {
return { ...state, addFriend: !state.addFriend };
}
case ActionsGlobalComponents.HANDLE_LANGUAGES_STATE: {
return { ...state, languages: !state.languages };
}
default:
state;
return state;
}
};

0 comments on commit 49dfe95

Please sign in to comment.