diff --git a/src/components/comments.js b/src/components/comments.js
index 89f1763..a79d5a7 100644
--- a/src/components/comments.js
+++ b/src/components/comments.js
@@ -45,8 +45,8 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
const commentStyle = admin
? styles.adminComment
: own
- ? styles.ownComment
- : ''
+ ? styles.ownComment
+ : ''
return (
@@ -210,16 +210,16 @@ export default function Comments({
) : null}
) : null}
-
{
- setCommentsShowing(true)
- if (commentCount === 0) {
- setAddingNewComment(true)
- }
- }}
- >
-
+
+ {
+ setCommentsShowing(true)
+ if (commentCount === 0) {
+ setAddingNewComment(true)
+ }
+ }}
+ className={styles.comment_bttn}
+ >
{commentCount === 0
? 'Új komment'
: `Kommentek mutatása (${commentCount})`}
diff --git a/src/pages/index.js b/src/pages/index.js
index cbbea42..955b96e 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -151,7 +151,7 @@ export default function Index({ globalData }) {
return res.json()
})
.then((res) => {
- setNews(res.news)
+ setNews(updateForumPost(news, postKey, res.postData))
})
}}
onCommentReact={({ path, reaction, isDelete }) => {