department-of-veterans-affairs/vets-website

View on GitHub
src/applications/edu-benefits/10203/prefill-transformer.js

Summary

Maintainability
A
1 hr
Test Coverage

Function prefillTransformer has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function prefillTransformer(pages, formData, metadata) {
  const { homePhone, mobilePhone, email, remainingEntitlement } = formData;

  const totalDays = remainingEntitlement
    ? remainingEntitlement.months * 30 + remainingEntitlement.days
Severity: Minor
Found in src/applications/edu-benefits/10203/prefill-transformer.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status