src/applications/yellow-ribbon/reducers/index.js
Function yellowRibbonReducer
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const yellowRibbonReducer = (state = initialState, action) => {
switch (action.type) {
case FETCH_RESULTS: {
return {
...state,
Avoid too many return
statements within this function. Open
Open
return { ...state };
Avoid too many return
statements within this function. Open
Open
return { ...state, isToolTipOpen: !state.isToolTipOpen };