src/platform/user/profile/reducers/index.js
Function profileInformation
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function profileInformation(state = initialState, action) {
switch (action.type) {
case UPDATE_PROFILE_FIELDS: {
const newState = mapRawUserDataToState(action.payload);
return { ...state, ...newState };