mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-25 00:28:02 -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 () {
|
||||
|
||||
// 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 ||
|
||||
(this.props.projectInfo && this.props.projectInfo.project_token));
|
||||
|
||||
|
|
Loading…
Reference in a new issue