import { IFormField , IFormData } from '@client/forms' ; export function hasSpouseDetailsTransformer ( transformedData , queryData , sectionId , field ) { if ( queryData . spouse ) { transformedData [ sectionId ] [ field . name ] = { value : 'Yes' , nestedFields : { } } ; } else { transformedData [ sectionId ] [ field . name ] = { value : 'No' , nestedFields : { } } ; } return transformedData ; }