mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-28 18:17:12 -05:00
adds clarifying comment
This commit is contained in:
parent
ec7f8735f1
commit
fa8e1c9ab1
1 changed files with 2 additions and 0 deletions
|
@ -717,6 +717,8 @@ class Preview extends React.Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
|
|
||||||
|
// Only show GUI if the project has no id, is a loaded local project, or has the project token loaded
|
||||||
const showGUI = (!this.state.projectId || this.state.projectId === '0' || this.state.isProjectLoaded ||
|
const showGUI = (!this.state.projectId || this.state.projectId === '0' || this.state.isProjectLoaded ||
|
||||||
(this.props.projectInfo && this.props.projectInfo.project_token));
|
(this.props.projectInfo && this.props.projectInfo.project_token));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue