department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/20-10206/config/prefill-transformer.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export default function prefillTransformer(pages, formData, metadata) {
  // TODO: once backend prefill is implemented, refactor to
  // remove test-data with incoming prefill data
  const { preparerType } = formData;
  const newFormData = {

    There are no issues that match your filters.

    Category
    Status