diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index b1816b6a..81746096 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -231,56 +231,60 @@ let CoaDetails = React.createClass({ }, render() { - if(this.props.coaError) { - return ( -
{getLangText('There was an error generating your Certificate of Authenticity.')}
-- {getLangText('Try to refresh the page. If this happens repeatedly, please ')} - {getLangText('contact us')}. -
-{getLangText('There was an error generating your Certificate of Authenticity.')}
, ++ {getLangText('Try to refresh the page. If this happens repeatedly, please ')} + {getLangText('contact us')}. +
+ ]; + } else if (coa.url_safe) { + coaDetailElement = [ +{getLangText("Just a sec, we\'re generating your COA")}
+ ]; + } else if (typeof coa === 'string') { + coaDetailElement = coa; + } else { + coaDetailElement = [ +{getLangText("Just a sec, we're generating your COA")}
,{getLangText('(you may leave the page)')}
+ ]; + } + + return ( +