fix: check name before parse uri called

This commit is contained in:
Thomas Zarebczan 2019-08-30 12:23:32 -04:00
parent 91cb55c442
commit c53cffad84

View file

@ -105,7 +105,7 @@ function PublishForm(props: Props) {
uri = buildURI({ streamName: name, channelName });
} catch (e) {}
if (channelName) {
if (channelName && name) {
// resolve without the channel name so we know the winning bid for it
try {
const uriLessChannel = buildURI({ streamName: name });