React reload fix

This commit is contained in:
mrfry 2021-04-21 13:53:03 +02:00
parent 21fdbb57a3
commit 42edd56d00
2 changed files with 13 additions and 13 deletions

View file

@ -45,8 +45,8 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
const commentStyle = admin
? styles.adminComment
: own
? styles.ownComment
: ''
? styles.ownComment
: ''
return (
<div className={styles.comment}>
@ -210,16 +210,16 @@ export default function Comments({
) : null}
</Modal>
) : null}
<div
className={'actions'}
onClick={() => {
setCommentsShowing(true)
if (commentCount === 0) {
setAddingNewComment(true)
}
}}
>
<span className={styles.comment_bttn}>
<div className={'actions'}>
<span
onClick={() => {
setCommentsShowing(true)
if (commentCount === 0) {
setAddingNewComment(true)
}
}}
className={styles.comment_bttn}
>
{commentCount === 0
? 'Új komment'
: `Kommentek mutatása (${commentCount})`}