diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index fbc13a50..068b526c 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -244,7 +244,16 @@ let CoaDetails = React.createClass({ if(this.props.coa && this.props.coa.url_safe) { return (
-

+

+ +
+
-

+
); } else if(typeof this.props.coa === 'string'){ @@ -268,7 +277,7 @@ let CoaDetails = React.createClass({ } return (
- +

{getLangText("Just a sec, we\'re generating your COA")}

{getLangText('(you may leave the page)')}

diff --git a/js/components/ascribe_detail/edition_container.js b/js/components/ascribe_detail/edition_container.js index 24010d47..a1fa7f58 100644 --- a/js/components/ascribe_detail/edition_container.js +++ b/js/components/ascribe_detail/edition_container.js @@ -87,16 +87,16 @@ let EditionContainer = React.createClass({ }, render() { - if (this.state.edition && this.state.edition.id && - this.state.currentUser && this.state.currentUser.email) { - setDocumentTitle([this.state.edition.artist_name, this.state.edition.title].join(', ')); + const {edition, currentUser, coaMeta} = this.state; + if (edition && edition.id && currentUser && currentUser.email) { + setDocumentTitle([edition.artist_name, edition.title].join(', ')); return ( EditionActions.fetchEdition(this.props.params.editionId)} /> ); } else {