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
@@ -120,6 +120,14 @@ const Board = () => {
await comment.publishChallengeAnswers(challengeAnswers)
}
};
useEffect(() => {
setPublishCommentOptions((prevPublishCommentOptions) => ({
...prevPublishCommentOptions,
subplebbitAddress: selectedAddress,
}));
}, [selectedAddress]);
const [publishCommentOptions, setPublishCommentOptions] = useState({