Show error message when team name is fewer than 4 characters

I have still kept the length validation in team_signup_url_page.jsx in case
user chooses the url shorter than 4 characters
Этот коммит содержится в:
Girish S
2015-11-02 09:56:12 +05:30
родитель dfb48568a3
Коммит c737723a04

Просмотреть файл

@@ -25,6 +25,9 @@ export default class TeamSignupDisplayNamePage extends React.Component {
if (!displayName) {
this.setState({nameError: 'This field is required'});
return;
} else if (displayName.length <= 2 || displayName.length > 15) {
this.setState({nameError: 'Name must be 3 or more characters up to a maximum of 15'});
return;
}
this.props.state.wizard = 'team_url';