mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 05:56:00 +00:00
fix naming of contract profile
This commit is contained in:
parent
1e6b7ab0fb
commit
94fca1d479
@ -36,7 +36,7 @@ class ContractContainer extends Component {
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return { contract: state.contract }
|
||||
}:
|
||||
};
|
||||
|
||||
export default compose(
|
||||
connect(
|
||||
|
@ -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} />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user