src/applications/edu-benefits/10203/prefill-transformer.js
Function prefillTransformer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function prefillTransformer(pages, formData, metadata) {
const { homePhone, mobilePhone, email, remainingEntitlement } = formData;
const totalDays = remainingEntitlement
? remainingEntitlement.months * 30 + remainingEntitlement.days