diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index 2227f388..1f298758 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -248,6 +248,18 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid: } }; + const hasInitializedDisplayName = useRef(false); + useEffect(() => { + if (displayName && !hasInitializedDisplayName.current) { + hasInitializedDisplayName.current = true; + if (isInPostView) { + setPublishReplyOptions({ displayName }); + } else { + setPublishPostStore({ displayName }); + } + } + }, [displayName, isInPostView]); + return (