UI: actually, don't wait for the streaming URL to render
This commit is contained in:
parent
c084a7a232
commit
2c51054ae4
1 changed files with 1 additions and 3 deletions
|
@ -670,14 +670,12 @@ class UI extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { streamingUrl, features, soapbox } = this.props;
|
const { features, soapbox } = this.props;
|
||||||
const { draggingOver, mobile } = this.state;
|
const { draggingOver, mobile } = this.state;
|
||||||
const { intl, children, location, dropdownMenuIsOpen, me } = this.props;
|
const { intl, children, location, dropdownMenuIsOpen, me } = this.props;
|
||||||
|
|
||||||
// Wait for login to succeed or fail
|
// Wait for login to succeed or fail
|
||||||
if (me === null) return null;
|
if (me === null) return null;
|
||||||
// If login didn't fail, wait for streaming to become available
|
|
||||||
if (me !== false && !streamingUrl) return null;
|
|
||||||
|
|
||||||
const handlers = me ? {
|
const handlers = me ? {
|
||||||
help: this.handleHotkeyToggleHelp,
|
help: this.handleHotkeyToggleHelp,
|
||||||
|
|
Loading…
Reference in a new issue