Merge pull request #632 from mewtaylor/issue/gh-618-login-style

Fix GH-617: switch ordering in defaults
This commit is contained in:
Matthew Taylor 2016-06-30 08:04:02 -04:00 committed by GitHub
commit 1045e6219e

View file

@ -29,8 +29,8 @@ module.exports.validationHOCFactory = function (defaultValidationErrors) {
var ValidatedComponent = React.createClass({
render: function () {
var validationErrors = defaults(
defaultValidationErrors,
this.props.validationErrors
this.props.validationErrors,
defaultValidationErrors
);
return (
<Component {...this.props} validationErrors={validationErrors} />