fixed problem when visiting urls with dynamic segments
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user