Coursemology/coursemology2

View on GitHub
client/app/bundles/course/survey/utils/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function formatQuestionFormData has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const formatQuestionFormData = (data) => {
  const payload = new FormData();
  const filledOptions = data.options.filter(
    (option) => option && (option.option || option.file || option.image_url),
  );
Severity: Minor
Found in client/app/bundles/course/survey/utils/index.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status