diff --git a/js/validator.js b/js/validator.js index 17f40ff..78141e4 100644 --- a/js/validator.js +++ b/js/validator.js @@ -220,7 +220,7 @@ var $block = $group.find('.help-block.with-errors') var $feedback = $group.find('.form-control-feedback') - if (!errors.length) return + if (!errors || !errors.length) return errors = $('