fix naming of contract profile

This commit is contained in:
Iuri Matias 2018-08-03 13:11:30 -04:00 committed by Pascal Precht
parent 3dc868eeeb
commit aa0adeb67f
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 6 additions and 7 deletions

View File

@ -36,7 +36,7 @@ class ContractContainer extends Component {
function mapStateToProps(state) {
return { contract: state.contract }
}:
};
export default compose(
connect(

View File

@ -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 (
<h1>
<i>Loading contract...</i>
<i>Loading contract profile...</i>
</h1>
);
}
if (contract.data.error) {
if (contractProfile.data.error) {
return (
<h1>
<i>Error API...</i>
@ -30,7 +29,7 @@ class ContractProfileContainer extends Component {
}
return (
<ContractProfile contract={contract.data} />
<ContractProfile contract={contractProfile.data} />
);
}
}