From 614bc3f74bba65ade05c8446d2b125e2de8a9735 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 18 Dec 2015 15:00:52 +0100 Subject: [PATCH] Small form fixes --- js/components/ascribe_forms/form.js | 2 +- js/components/ascribe_forms/form_loan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js index d4002e85..d015d58d 100644 --- a/js/components/ascribe_forms/form.js +++ b/js/components/ascribe_forms/form.js @@ -156,7 +156,7 @@ let Form = React.createClass({ for(let ref in this.refs) { if(this.refs[ref] && typeof this.refs[ref].handleSuccess === 'function'){ - this.refs[ref].handleSuccess(); + this.refs[ref].handleSuccess(response); } } this.setState({ diff --git a/js/components/ascribe_forms/form_loan.js b/js/components/ascribe_forms/form_loan.js index 861806ae..e04eb209 100644 --- a/js/components/ascribe_forms/form_loan.js +++ b/js/components/ascribe_forms/form_loan.js @@ -171,7 +171,7 @@ let LoanForm = React.createClass({ editable={!gallery} overrideForm={!!gallery}>