Merge pull request #91 from ascribe/AD-1543-edition-detail-hangs-on-first-view-after-transfer

AD-1543 Edition detail hangs on first view after transfer
This commit is contained in:
Brett Sun 2016-01-04 18:10:27 +01:00
commit c4730dbae5
1 changed files with 3 additions and 3 deletions

View File

@ -233,9 +233,9 @@ let CoaDetails = React.createClass({
},
render() {
const { coa = {}, coaError } = this.props;
const { coa, coaError } = this.props;
let coaDetailElement;
if (coaError) {
coaDetailElement = [
<p>{getLangText('There was an error generating your Certificate of Authenticity.')}</p>,
@ -244,7 +244,7 @@ let CoaDetails = React.createClass({
<a style={{ cursor: 'pointer' }} onClick={this.contactOnIntercom}>{getLangText('contact us')}</a>.
</p>
];
} else if (coa.url_safe) {
} else if (coa && coa.url_safe) {
coaDetailElement = [
<div
className="notification-contract-pdf"