fix undefined

This commit is contained in:
plebeius.eth
2023-07-03 08:53:54 +02:00
parent 42bafa6abd
commit 7a9a31a7ed
+4 -4
View File
@@ -950,8 +950,8 @@ const Thread = () => {
> >
<ul className="post-menu-catalog"> <ul className="post-menu-catalog">
<li onClick={() => handleOptionClick(comment.cid)}>Hide thread</li> <li onClick={() => handleOptionClick(comment.cid)}>Hide thread</li>
{comment.author.address === account?.author.address || {comment.author?.address === account?.author.address ||
comment.author.address === account?.signer.address ? ( comment.author?.address === account?.signer.address ? (
<> <>
<li onClick={() => handleAuthorEditClick(comment)}>Edit post</li> <li onClick={() => handleAuthorEditClick(comment)}>Edit post</li>
<li onClick={() => handleAuthorDeleteClick(comment)}>Delete post</li> <li onClick={() => handleAuthorDeleteClick(comment)}>Delete post</li>
@@ -959,8 +959,8 @@ const Thread = () => {
) : null} ) : null}
{isModerator ? ( {isModerator ? (
<> <>
{comment.author.address === account?.author.address || {comment.author?.address === account?.author.address ||
comment.author.address === account?.signer.address ? ( comment.author?.address === account?.signer.address ? (
null null
) : ( ) : (
<li onClick={() => { <li onClick={() => {