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
@@ -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();