Fix up rendering of comments for only verified users
This commit is contained in:
parent
892d6288e3
commit
911fe6ebbc
1 changed files with 5 additions and 2 deletions
|
@ -54,7 +54,9 @@ class Post extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Comment></Comment>
|
{ this.props.auth.verified &&
|
||||||
|
<Comment></Comment>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<h3>Comments:</h3>
|
<h3>Comments:</h3>
|
||||||
<hr></hr>
|
<hr></hr>
|
||||||
|
@ -80,7 +82,8 @@ class Post extends React.Component {
|
||||||
const mapStateToProps = (state) => {
|
const mapStateToProps = (state) => {
|
||||||
return {
|
return {
|
||||||
posts: state.posts,
|
posts: state.posts,
|
||||||
slug: state.slug
|
slug: state.slug,
|
||||||
|
auth: state.auth
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue