fix(live-streaming): trim the entered stream key

This commit is contained in:
Leonard Kim 2018-12-17 13:19:44 -08:00
parent 4da8c626f7
commit b57eaed940
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ export default class AbstractStartLiveStreamDialog<P: Props>
*/
_onSubmit() {
const { broadcasts, selectedBoundStreamID } = this.state;
const key = this.state.streamKey || this.props._streamKey;
const key
= (this.state.streamKey || this.props._streamKey || '').trim();
if (!key) {
return false;