add setPendingCommentIndex

This commit is contained in:
plebbitor
2023-04-24 15:48:30 +02:00
parent 04cdd9f445
commit 661f925f07
9 changed files with 41 additions and 4 deletions
+2
View File
@@ -32,6 +32,7 @@ const Board = () => {
setIsCaptchaOpen,
isSettingsOpen, setIsSettingsOpen,
setPendingComment,
setPendingCommentIndex,
setResolveCaptchaPromise,
selectedAddress, setSelectedAddress,
setSelectedParentCid,
@@ -145,6 +146,7 @@ const Board = () => {
useEffect(() => {
if (index !== undefined) {
setPendingCommentIndex(index);
navigate(`/profile/c/${index}`);
}
}, [index]);