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>
|
||||
{ this.props.auth.verified &&
|
||||
<Comment></Comment>
|
||||
}
|
||||
</div>
|
||||
<h3>Comments:</h3>
|
||||
<hr></hr>
|
||||
|
@ -80,7 +82,8 @@ class Post extends React.Component {
|
|||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
posts: state.posts,
|
||||
slug: state.slug
|
||||
slug: state.slug,
|
||||
auth: state.auth
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue