client/app/bundles/course/assessment/submission/reducers/questionsFlags.js
Function default
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = {}, action) {
switch (action.type) {
case actions.FETCH_SUBMISSION_SUCCESS:
case actions.UNSUBMIT_SUCCESS:
case actions.FINALISE_SUCCESS:
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[questionId]: {
...state[questionId],
isResetting: false,
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return {
...state,
[questionId]: {
...state[questionId],
isResetting: true,
- Create a ticketCreate a ticket