fix anon mode

This commit is contained in:
Tom (plebeius.eth)
2024-08-25 18:58:38 +02:00
parent a0f83304e5
commit 899239e10e
3 changed files with 40 additions and 48 deletions
-8
View File
@@ -266,14 +266,6 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid:
publishReply();
};
const hasSetInitialDisplayName = useRef(false);
useEffect(() => {
if (!hasSetInitialDisplayName.current && displayName) {
setPublishReplyOptions({ displayName });
hasSetInitialDisplayName.current = true;
}
}, [displayName, setPublishReplyOptions]);
useEffect(() => {
if (typeof replyIndex === 'number') {
resetPublishReplyOptions();