fix undefined

This commit is contained in:
plebeius.eth
2024-05-07 14:11:43 +02:00
parent 436858960c
commit 1a57d3ae53
+2 -2
View File
@@ -344,7 +344,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => {
{isReplyingToReply && (
<>
<Link to={`/p/${subplebbitAddress}/c/${parentCid}`} className={styles.quoteLink}>
{`c/${Plebbit.getShortCid(parentCid)}`}
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
</Link>
<br />
</>
@@ -576,7 +576,7 @@ const ReplyMobile = ({ reply, roles, openReplyModal }: PostProps) => {
{isReplyingToReply && (
<>
<Link to={`/p/${subplebbitAddress}/c/${parentCid}`} className={styles.quoteLink}>
{`c/${Plebbit.getShortCid(parentCid)}`}
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
</Link>
<br />
</>