fixed problem when visiting urls with dynamic segments

This commit is contained in:
Edin Dazdarevic
2015-02-23 21:53:53 +01:00
parent e1d1804be9
commit 42f2343cec
2 changed files with 4 additions and 6 deletions

View File

@@ -93,9 +93,7 @@ var Register = React.createClass({
firstName: function(value) {
var errors = [];
if (!value || value === '') {
errors.push("First name is required.");
} else if (value && value.length > 5) {
errors.push("First name is larger than 5 characters.");
errors.push("Ime je obavezno.");
}
return errors;
},