fix naming of contract profile
This commit is contained in:
parent
3dc868eeeb
commit
aa0adeb67f
|
@ -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(
|
||||||
|
|
|
@ -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} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue