From af7505c45f3196ee21b3fdd5d70411538a05bcea Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Mon, 14 Oct 2024 17:12:18 +0200 Subject: [PATCH] fix(publish reply): error "content is an empty string" could appear --- src/hooks/use-publish-reply.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/use-publish-reply.ts b/src/hooks/use-publish-reply.ts index 337d7ce1..85f28a1c 100644 --- a/src/hooks/use-publish-reply.ts +++ b/src/hooks/use-publish-reply.ts @@ -11,9 +11,9 @@ const usePublishReply = ({ cid, subplebbitAddress }: { cid: string; subplebbitAd const { author, signer, content, link, spoiler, publishCommentOptions } = usePublishReplyStore((state) => ({ author: state.author[parentCid] || (account?.author ? { displayName: account.author.displayName || undefined } : undefined), displayName: state.displayName[parentCid] || account?.author?.displayName, - signer: state.signer[parentCid], - content: state.content[parentCid] || '', - link: state.link[parentCid], + signer: state.signer[parentCid] || undefined, + content: state.content[parentCid] || undefined, + link: state.link[parentCid] || undefined, spoiler: state.spoiler[parentCid] || false, publishCommentOptions: state.publishCommentOptions[parentCid], }));