src/applications/mhv-medical-records/reducers/images.js
Function imagesReducer
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const imagesReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Images.REQUEST_IMAGE_STUDY: {
return {
...state,
Avoid too many return
statements within this function. Open
Open
return {
...state,
imageRequestApiFailed: action?.payload ?? false,
};