1
0
Fork 0

Fix up rendering of comments for only verified users

This commit is contained in:
Amarpreet Minhas 2020-02-01 18:08:25 -05:00
parent 892d6288e3
commit 911fe6ebbc

View file

@ -54,7 +54,9 @@ class Post extends React.Component {
</div>
</div>
</div>
<Comment></Comment>
{ 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
};
}