Publish: Add length check for new channel names

This commit is contained in:
Alex Liebowitz 2017-04-10 04:08:43 -04:00
parent a9cb0abcc6
commit 6c68eb5e2b

View file

@ -288,6 +288,11 @@ var PublishPage = React.createClass({
});
},
handleCreateChannelClick: function (event) {
if (this.state.newChannelName.length < 5) {
this.refs.newChannelName.showAdvice('LBRY channel names must be at least 4 characters in length.');
return;
}
this.setState({
creatingChannel: true,
});