Skip to content

Commit 017cff5

Browse files
authored
Minor code improvement
1 parent b28b09c commit 017cff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/Post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class Post extends React.Component {
5959
{loadingComments === true
6060
? loadingPost === false && <Loading text='Fetching comments' />
6161
: <React.Fragment>
62-
{this.state.comments.map((comment) =>
62+
{comments.map((comment) =>
6363
<Comment
6464
key={comment.id}
6565
comment={comment}
@@ -69,4 +69,4 @@ export default class Post extends React.Component {
6969
</React.Fragment>
7070
)
7171
}
72-
}
72+
}

0 commit comments

Comments
 (0)