fixed invalid subplebbit address

This commit is contained in:
plebbitor
2023-04-23 15:14:49 +02:00
parent 24b2177e87
commit b2009afd80
4 changed files with 32 additions and 0 deletions
+8
View File
@@ -56,6 +56,14 @@ const ReplyModal = ({ isOpen, closeModal }) => {
};
useEffect(() => {
setPublishCommentOptions((prevPublishCommentOptions) => ({
...prevPublishCommentOptions,
subplebbitAddress: selectedAddress,
}));
}, [selectedAddress]);
const [publishCommentOptions, setPublishCommentOptions] = useState({
subplebbitAddress: selectedAddress,
onChallenge,