mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Fix check for coa
This commit is contained in:
parent
f819e1313e
commit
15a2bfae9a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user