refactor, fix bugs

This commit is contained in:
Tom (plebeius.eth)
2025-01-30 17:09:21 +01:00
parent b1dc7ba486
commit 204fdfcace
4 changed files with 147 additions and 78 deletions
+2 -2
View File
@@ -262,7 +262,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
placeholder={displayName ? undefined : _.capitalize(t('name'))}
onChange={(e) => {
setAccount({ ...account, author: { ...account?.author, displayName: e.target.value } });
setPublishReplyOptions({ displayName: e.target.value || undefined });
setPublishReplyOptions({ displayName: e.target.value });
}}
/>
</div>
@@ -273,7 +273,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
placeholder={_.capitalize(t('link'))}
onChange={(e) => {
setUrl(e.target.value);
setPublishReplyOptions({ link: e.target.value || undefined });
setPublishReplyOptions({ link: e.target.value });
}}
/>
</div>