mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
Merge pull request #6822 from tomlum/fixes-create-project-token
Adds check for newly created project to not require token
This commit is contained in:
commit
7062a5f170
1 changed files with 3 additions and 1 deletions
|
@ -833,7 +833,9 @@ class Preview extends React.Component {
|
|||
/>
|
||||
</Page> :
|
||||
<React.Fragment>
|
||||
{this.props.projectInfo && this.props.projectInfo.project_token && (
|
||||
{(parseInt(this.state.projectId, 10) === 0 ||
|
||||
(this.props.projectInfo && this.props.projectInfo.project_token)) &&
|
||||
(
|
||||
<IntlGUI
|
||||
assetHost={this.props.assetHost}
|
||||
authorId={this.props.authorId}
|
||||
|
|
Loading…
Reference in a new issue