From 0b79a55175fd396c95894e2f67796a42056087fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 4 Dec 2015 10:57:57 +0100 Subject: [PATCH] Destructure correct contractAgreement prop --- .../ascribe_forms/input_contract_agreement_checkbox.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/components/ascribe_forms/input_contract_agreement_checkbox.js b/js/components/ascribe_forms/input_contract_agreement_checkbox.js index b95f598b..2547d2d5 100644 --- a/js/components/ascribe_forms/input_contract_agreement_checkbox.js +++ b/js/components/ascribe_forms/input_contract_agreement_checkbox.js @@ -135,9 +135,11 @@ const InputContractAgreementCheckbox = React.createClass({ if(contractAgreement) { const { datetime_accepted: datetimeAccepted, - issuer: contractIssuer, - blob: { url_safe: contractUrl }, - } = contractAgreement.contract; + contract: { + issuer: contractIssuer, + blob: { url_safe: contractUrl } + } + } = contractAgreement; if(datetimeAccepted) { return (