src/applications/simple-forms/20-10206/config/prefill-transformer.js
Function prefillTransformer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = {