SumOfUs/Champaign

View on GitHub
app/javascript/util/getBraintreeErrorMessages.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getErrorsByCode has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getErrorsByCode(code) {
  let errors = [];
  switch (code) {
    case '':
    case undefined:
Severity: Minor
Found in app/javascript/util/getBraintreeErrorMessages.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status