mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Destructure correct contractAgreement prop
This commit is contained in:
parent
34126c2254
commit
0b79a55175
@ -135,9 +135,11 @@ const InputContractAgreementCheckbox = React.createClass({
|
|||||||
if(contractAgreement) {
|
if(contractAgreement) {
|
||||||
const {
|
const {
|
||||||
datetime_accepted: datetimeAccepted,
|
datetime_accepted: datetimeAccepted,
|
||||||
issuer: contractIssuer,
|
contract: {
|
||||||
blob: { url_safe: contractUrl },
|
issuer: contractIssuer,
|
||||||
} = contractAgreement.contract;
|
blob: { url_safe: contractUrl }
|
||||||
|
}
|
||||||
|
} = contractAgreement;
|
||||||
|
|
||||||
if(datetimeAccepted) {
|
if(datetimeAccepted) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user