mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix undefined
This commit is contained in:
@@ -950,8 +950,8 @@ const Thread = () => {
|
||||
>
|
||||
<ul className="post-menu-catalog">
|
||||
<li onClick={() => handleOptionClick(comment.cid)}>Hide thread</li>
|
||||
{comment.author.address === account?.author.address ||
|
||||
comment.author.address === account?.signer.address ? (
|
||||
{comment.author?.address === account?.author.address ||
|
||||
comment.author?.address === account?.signer.address ? (
|
||||
<>
|
||||
<li onClick={() => handleAuthorEditClick(comment)}>Edit post</li>
|
||||
<li onClick={() => handleAuthorDeleteClick(comment)}>Delete post</li>
|
||||
@@ -959,8 +959,8 @@ const Thread = () => {
|
||||
) : null}
|
||||
{isModerator ? (
|
||||
<>
|
||||
{comment.author.address === account?.author.address ||
|
||||
comment.author.address === account?.signer.address ? (
|
||||
{comment.author?.address === account?.author.address ||
|
||||
comment.author?.address === account?.signer.address ? (
|
||||
null
|
||||
) : (
|
||||
<li onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user