remove redundant toast, fix thread

This commit is contained in:
plebbitor
2023-04-21 18:16:05 +02:00
parent 2ebee13bf6
commit 44d6567e17
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
const onChallengeVerification = (challengeVerification) => {
if (challengeVerification.challengeSuccess === true) {
localStorage.setItem("toastMessage", "Challenge Success");
console.log('challenge success:', challengeVerification);
}
else if (challengeVerification.challengeSuccess === false) {
setErrorMessage('challenge failed', {reason: challengeVerification.reason, errors: challengeVerification.errors});
+1 -1
View File
@@ -99,7 +99,6 @@ const Board = () => {
const onChallengeVerification = (challengeVerification) => {
if (challengeVerification.challengeSuccess === true) {
localStorage.setItem("toastMessage", "Challenge Success");
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
}
else if (challengeVerification.challengeSuccess === false) {
@@ -193,6 +192,7 @@ const Board = () => {
if (event.key === 'Enter') {
const currentCaptchaResponse = useGeneralStore.getState().captchaResponse;
resolve(currentCaptchaResponse);
console.log('captcha response', currentCaptchaResponse)
setIsCaptchaOpen(false);
document.removeEventListener('keydown', handleKeyDown);
event.preventDefault();
-1
View File
@@ -82,7 +82,6 @@ const Catalog = () => {
const onChallengeVerification = (challengeVerification) => {
if (challengeVerification.challengeSuccess === true) {
localStorage.setItem("toastMessage", "Challenge Success");
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
}
else if (challengeVerification.challengeSuccess === false) {
+1 -1
View File
@@ -846,7 +846,7 @@ const Thread = () => {
<hr />
</div>
</BottomBar>
{comment.replyCount > 5 ? (
{comment.replyCount > 2 ? (
<div id="bottombar-mobile">
<TopBar selectedStyle={selectedStyle} style={{marginTop: "20px"}}>
<hr />