1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Destructure correct contractAgreement prop

This commit is contained in:
Tim Daubenschütz 2015-12-04 10:57:57 +01:00
parent 34126c2254
commit 0b79a55175

View File

@ -135,9 +135,11 @@ const InputContractAgreementCheckbox = React.createClass({
if(contractAgreement) { if(contractAgreement) {
const { const {
datetime_accepted: datetimeAccepted, datetime_accepted: datetimeAccepted,
contract: {
issuer: contractIssuer, issuer: contractIssuer,
blob: { url_safe: contractUrl }, blob: { url_safe: contractUrl }
} = contractAgreement.contract; }
} = contractAgreement;
if(datetimeAccepted) { if(datetimeAccepted) {
return ( return (