From 184f343e2b1118bd014e8f403b0192bef98d9036 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 20 Sep 2024 11:49:29 +0200 Subject: [PATCH] Update use-publish-reply.ts --- src/hooks/use-publish-reply.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/use-publish-reply.ts b/src/hooks/use-publish-reply.ts index e73ddfef..ab23ee08 100644 --- a/src/hooks/use-publish-reply.ts +++ b/src/hooks/use-publish-reply.ts @@ -97,7 +97,7 @@ const useReply = ({ cid, subplebbitAddress }: { cid: string; subplebbitAddress: const { anonMode } = useAnonMode(); const { author, signer, content, link, spoiler, publishCommentOptions } = useReplyStore((state) => ({ - author: state.author[parentCid] || (account?.author ? { ...account.author, displayName: account.author.displayName || undefined } : undefined), + 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] || '',