fix(live-streaming): trim the entered stream key
This commit is contained in:
parent
4da8c626f7
commit
b57eaed940
|
@ -194,7 +194,8 @@ export default class AbstractStartLiveStreamDialog<P: Props>
|
||||||
*/
|
*/
|
||||||
_onSubmit() {
|
_onSubmit() {
|
||||||
const { broadcasts, selectedBoundStreamID } = this.state;
|
const { broadcasts, selectedBoundStreamID } = this.state;
|
||||||
const key = this.state.streamKey || this.props._streamKey;
|
const key
|
||||||
|
= (this.state.streamKey || this.props._streamKey || '').trim();
|
||||||
|
|
||||||
if (!key) {
|
if (!key) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue