mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-28 10:07:59 -05:00
moves const
This commit is contained in:
parent
7a52cedae1
commit
ec7f8735f1
1 changed files with 4 additions and 2 deletions
|
@ -717,6 +717,9 @@ class Preview extends React.Component {
|
|||
);
|
||||
}
|
||||
render () {
|
||||
const showGUI = (!this.state.projectId || this.state.projectId === '0' || this.state.isProjectLoaded ||
|
||||
(this.props.projectInfo && this.props.projectInfo.project_token));
|
||||
|
||||
if (this.props.projectNotAvailable || this.state.invalidProject) {
|
||||
return (
|
||||
<Page>
|
||||
|
@ -833,8 +836,7 @@ class Preview extends React.Component {
|
|||
/>
|
||||
</Page> :
|
||||
<React.Fragment>
|
||||
{(!this.state.projectId || this.state.projectId === '0' || this.state.isProjectLoaded ||
|
||||
(this.props.projectInfo && this.props.projectInfo.project_token)) &&
|
||||
{showGUI &&
|
||||
(
|
||||
<IntlGUI
|
||||
assetHost={this.props.assetHost}
|
||||
|
|
Loading…
Reference in a new issue