fix(Thread): fix undefined

This commit is contained in:
plebeius.eth
2023-09-26 21:06:36 +02:00
parent a5a01a8732
commit fdebe14cdb
+2 -2
View File
@@ -1108,7 +1108,7 @@ const Thread = () => {
<VerifiedAuthor commentCid={comment.cid}>
{({ shortAuthorAddress, authorAddressChanged }) => (
<>
<span className='author-address-hidden'>{comment.author.shortAddress}</span>
<span className='author-address-hidden'>{comment.author?.shortAddress}</span>
<span className={`author-address-visible ${authorAddressChanged ? 'authorAddressChanged' : ''}`}>{shortAuthorAddress}</span>
</>
)}
@@ -2099,7 +2099,7 @@ const Thread = () => {
<VerifiedAuthor commentCid={comment.cid}>
{({ shortAuthorAddress, authorAddressChanged }) => (
<>
<span className='author-address-hidden'>{comment.author.shortAddress}</span>
<span className='author-address-hidden'>{comment.author?.shortAddress}</span>
<span className={`author-address-visible ${authorAddressChanged ? 'authorAddressChanged' : ''}`}>{shortAuthorAddress}</span>
</>
)}