From 6c68eb5e2bc76f68867994f31dfa90df9968bbb1 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Mon, 10 Apr 2017 04:08:43 -0400 Subject: [PATCH] Publish: Add length check for new channel names --- ui/js/page/publish.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/js/page/publish.js b/ui/js/page/publish.js index b7a0eac43..f6ded9a21 100644 --- a/ui/js/page/publish.js +++ b/ui/js/page/publish.js @@ -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, });