client/app/bundles/course/assessment/reducers/formDialog.js
Function default
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
switch (action.type) {
case actionTypes.ASSESSMENT_FORM_SHOW: {
return { ...state, visible: true };
}
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
visible: false,
disabled: false,
};
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...state, disabled: true };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...state, disabled: false };
- Create a ticketCreate a ticket