Coursemology/coursemology2

View on GitHub
client/app/lib/components/form/fields/ToggleField.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function FormToggleField has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const FormToggleField = (props) => {
  const { field, fieldState, disabled, label, renderIf, ...custom } = props;
  const isError = !!fieldState.error;
  if (!renderIf) {
    return null;
Severity: Minor
Found in client/app/lib/components/form/fields/ToggleField.jsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status