From 1a57d3ae536cfb54a4df1a6833cd8c48b083b7c3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Tue, 7 May 2024 14:11:43 +0200 Subject: [PATCH] fix undefined --- src/components/post/post.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index de9d69da..0cdaf091 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -344,7 +344,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => { {isReplyingToReply && ( <> - {`c/${Plebbit.getShortCid(parentCid)}`} + {`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
@@ -576,7 +576,7 @@ const ReplyMobile = ({ reply, roles, openReplyModal }: PostProps) => { {isReplyingToReply && ( <> - {`c/${Plebbit.getShortCid(parentCid)}`} + {`c/${parentCid && Plebbit.getShortCid(parentCid)}`}