fix replying to reply requires postCid in new API

This commit is contained in:
Tom (plebeius.eth)
2024-11-07 13:51:39 +01:00
parent 9fce57597f
commit 157c9e7cfa
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -31,7 +31,11 @@ interface ReplyModalProps {
const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, subplebbitAddress }: ReplyModalProps) => {
const { t } = useTranslation();
const { setPublishReplyOptions, publishReply, resetPublishReplyOptions, replyIndex } = usePublishReply({ cid: parentCid, subplebbitAddress });
const { setPublishReplyOptions, publishReply, resetPublishReplyOptions, replyIndex } = usePublishReply({
cid: parentCid,
subplebbitAddress,
postCid,
});
const account = useAccount();
const { displayName } = account?.author || {};
const [url, setUrl] = useState('');