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) { function mapStateToProps(state) {
return { contract: state.contract } return { contract: state.contract }
}: };
export default compose( export default compose(
connect( connect(

View File

@ -11,17 +11,16 @@ class ContractProfileContainer extends Component {
} }
render() { render() {
//const { contract } = this.props; const { contractProfile } = this.props;
const contract = this.props.contractProfile; if (!contractProfile.data) {
if (!contract.data) {
return ( return (
<h1> <h1>
<i>Loading contract...</i> <i>Loading contract profile...</i>
</h1> </h1>
); );
} }
if (contract.data.error) { if (contractProfile.data.error) {
return ( return (
<h1> <h1>
<i>Error API...</i> <i>Error API...</i>
@ -30,7 +29,7 @@ class ContractProfileContainer extends Component {
} }
return ( return (
<ContractProfile contract={contract.data} /> <ContractProfile contract={contractProfile.data} />
); );
} }
} }