src/applications/mhv-medical-records/reducers/downloads.js
Function downloadsReducer
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const downloadsReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Downloads.GENERATE_CCD: {
return {
...state,
Avoid too many return
statements within this function. Open
Open
return {
...state,
dateFilter: action.response,
};
Avoid too many return
statements within this function. Open
Open
return { ...state };
Avoid too many return
statements within this function. Open
Open
return {
...state,
recordFilter: action.response,
};
Avoid too many return
statements within this function. Open
Open
return {
...state,
downloadSuccess: true,
};
Avoid too many return
statements within this function. Open
Open
return {
...state,
downloadSuccess: false,
};