From 31e959017228f934548df14378aab8b3bee77fec Mon Sep 17 00:00:00 2001 From: Reinier Guerra Date: Fri, 10 Jul 2015 11:18:44 -0400 Subject: [PATCH] Update main.js --- src/main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index ff14fc6..729d3f5 100644 --- a/src/main.js +++ b/src/main.js @@ -373,10 +373,7 @@ Formsy.Form = React.createClass({ // run when the last component has set its state var onValidationComplete = function () { allIsValid = inputKeys.every(function (name) { - if (!inputs[name].state._isValid) { - return false; - } - return true; + return inputs[name].state._isValid; }.bind(this)); this.setState({