src/models/sections/legalTechnologyManipulating.js
import { hasYesOrNo } from 'models/validate'
import manipulatingTech from 'models/manipulatingTech'
const legalTechnologyManipulatingModel = {
HasManipulating: { presence: true, hasValue: { validator: hasYesOrNo } },
List: (value, attributes) => {
if (attributes.HasManipulating && attributes.HasManipulating.value === 'Yes') {
return {
presence: true,
accordion: { validator: manipulatingTech },
}
}
return {}
},
}
export default legalTechnologyManipulatingModel