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() {
|
render() {
|
||||||
const { coa = {}, coaError } = this.props;
|
const { coa, coaError } = this.props;
|
||||||
|
|
||||||
let coaDetailElement;
|
let coaDetailElement;
|
||||||
|
|
||||||
if (coaError) {
|
if (coaError) {
|
||||||
coaDetailElement = [
|
coaDetailElement = [
|
||||||
<p>{getLangText('There was an error generating your Certificate of Authenticity.')}</p>,
|
<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>.
|
<a style={{ cursor: 'pointer' }} onClick={this.contactOnIntercom}>{getLangText('contact us')}</a>.
|
||||||
</p>
|
</p>
|
||||||
];
|
];
|
||||||
} else if (coa.url_safe) {
|
} else if (coa && coa.url_safe) {
|
||||||
coaDetailElement = [
|
coaDetailElement = [
|
||||||
<div
|
<div
|
||||||
className="notification-contract-pdf"
|
className="notification-contract-pdf"
|
||||||
|
Loading…
Reference in New Issue
Block a user