diff --git a/src/components/CaptchaModal.jsx b/src/components/CaptchaModal.jsx
index 40802fd7..fb9ac4e4 100644
--- a/src/components/CaptchaModal.jsx
+++ b/src/components/CaptchaModal.jsx
@@ -11,7 +11,8 @@ const CaptchaModal = () => {
pendingComment,
selectedStyle,
setCaptchaResponse,
- isCaptchaOpen, setIsCaptchaOpen
+ isCaptchaOpen, setIsCaptchaOpen,
+ selectedShortCid,
} = useGeneralStore(state => state);
const [imageSources, setImageSources] = useState([]);
@@ -57,7 +58,7 @@ const CaptchaModal = () => {
{pendingComment.parentCid ?
- ("Challenges for Reply c/" + pendingComment.cid) :
+ ("Challenges for Reply to c/" + selectedShortCid) :
"Challenges for New Thread"}
setIsCaptchaOpen(false)} title="close" />
@@ -102,13 +103,19 @@ const CaptchaModal = () => {
Challenge {currentChallengeIndex + 1} of {totalChallenges}
-
{
- setCurrentChallengeIndex((currentChallengeIndex + 1) % totalChallenges)
- }
- }>>
-
{
- setCurrentChallengeIndex((currentChallengeIndex - 1 + totalChallenges) % totalChallenges)
- }}><
+
{
+ if (currentChallengeIndex + 1 < totalChallenges) {
+ setCurrentChallengeIndex((currentChallengeIndex + 1) % totalChallenges);
+ } else {
+ setCaptchaResponse(responseRef.current.value);
+ setIsCaptchaOpen(false);
+ }
+ }}
+ >
+ {currentChallengeIndex + 1 < totalChallenges ? "Next" : "Post"}
+
diff --git a/src/components/styled/ReplyModal.styled.jsx b/src/components/styled/ReplyModal.styled.jsx
index 8594f392..9f66017e 100644
--- a/src/components/styled/ReplyModal.styled.jsx
+++ b/src/components/styled/ReplyModal.styled.jsx
@@ -68,7 +68,7 @@ export const StyledModal = styled(Modal)`
position: absolute;
top: 4px;
left: 5px;
- color: #999;
+ color: black;
text-decoration: underline;
pointer-events: none;
}
diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx
index fd63a513..55c5d36d 100644
--- a/src/components/views/Thread.jsx
+++ b/src/components/views/Thread.jsx
@@ -308,12 +308,12 @@ const Thread = () => {