diff --git a/embark-ui/src/containers/ContractContainer.js b/embark-ui/src/containers/ContractContainer.js index 9c5bc16d..125079be 100644 --- a/embark-ui/src/containers/ContractContainer.js +++ b/embark-ui/src/containers/ContractContainer.js @@ -36,7 +36,7 @@ class ContractContainer extends Component { function mapStateToProps(state) { return { contract: state.contract } -}: +}; export default compose( connect( diff --git a/embark-ui/src/containers/ContractProfileContainer.js b/embark-ui/src/containers/ContractProfileContainer.js index 6641f405..8af6b390 100644 --- a/embark-ui/src/containers/ContractProfileContainer.js +++ b/embark-ui/src/containers/ContractProfileContainer.js @@ -11,17 +11,16 @@ class ContractProfileContainer extends Component { } render() { - //const { contract } = this.props; - const contract = this.props.contractProfile; - if (!contract.data) { + const { contractProfile } = this.props; + if (!contractProfile.data) { return (