| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 14 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict'; |
||
| 2 | |||
| 3 | var _ = require( 'underscore' ), |
||
| 4 | validationResult = require( './../validation_result' ) |
||
| 5 | ; |
||
| 6 | |||
| 7 | module.exports = function ( state ) { |
||
| 8 | var result = _.clone( validationResult ); |
||
| 9 | result.dataEntered = state.donationFormContent.paymentIntervalInMonths >= 0 && |
||
| 10 | state.donationFormContent.amount !== 0 && |
||
| 11 | state.donationFormContent.paymentType !== ''; |
||
| 12 | |||
| 13 | return result; |
||
| 14 | }; |
||
| 15 |