diff --git a/js/components/ascribe_forms/form_loan.js b/js/components/ascribe_forms/form_loan.js index f9b866a3..276ff492 100644 --- a/js/components/ascribe_forms/form_loan.js +++ b/js/components/ascribe_forms/form_loan.js @@ -68,8 +68,12 @@ let LoanForm = React.createClass({ return this.props.id; }, - handleOnBlur(event) { - LoanContractActions.fetchLoanContract(event.target.value); + handleOnChange(event) { + let potentialEmail = event.target.value; + + if(potentialEmail.match(/.*@.*/)) { + LoanContractActions.fetchLoanContract(potentialEmail); + } }, getContractCheckbox() { @@ -151,7 +155,7 @@ let LoanForm = React.createClass({