fix displayName

This commit is contained in:
Tom (plebeius.eth)
2024-09-19 21:07:45 +02:00
parent bb976409ff
commit 81e2c0ffcb
2 changed files with 14 additions and 8 deletions
+6
View File
@@ -131,6 +131,12 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid:
const { link, publishCommentOptions, setSubmitStore, resetSubmitStore } = useSubmitStore();
const { index, publishComment } = usePublishComment(publishCommentOptions);
useEffect(() => {
if (displayName) {
setSubmitStore({ displayName });
}
}, [displayName, setSubmitStore]);
const textRef = useRef<HTMLTextAreaElement>(null);
const urlRef = useRef<HTMLInputElement>(null);
const subjectRef = useRef<HTMLInputElement>(null);