ts/store/reducers/userDataProcessing.ts
Function userDataProcessingReducer
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const userDataProcessingReducer = (
state: UserDataProcessingState = INITIAL_STATE,
action: Action
): UserDataProcessingState => {
switch (action.type) {
Avoid too many return
statements within this function. Open
Open
return {
...state,
...computedProp(action.payload, pot.none)
};
Avoid too many return
statements within this function. Open
Open
return {
...state,
[UserDataProcessingChoiceEnum.DELETE]: pot.some(prevValue)
};