mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
remove redundant toast, fix thread
This commit is contained in:
@@ -40,7 +40,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
|
|
||||||
const onChallengeVerification = (challengeVerification) => {
|
const onChallengeVerification = (challengeVerification) => {
|
||||||
if (challengeVerification.challengeSuccess === true) {
|
if (challengeVerification.challengeSuccess === true) {
|
||||||
localStorage.setItem("toastMessage", "Challenge Success");
|
console.log('challenge success:', challengeVerification);
|
||||||
}
|
}
|
||||||
else if (challengeVerification.challengeSuccess === false) {
|
else if (challengeVerification.challengeSuccess === false) {
|
||||||
setErrorMessage('challenge failed', {reason: challengeVerification.reason, errors: challengeVerification.errors});
|
setErrorMessage('challenge failed', {reason: challengeVerification.reason, errors: challengeVerification.errors});
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ const Board = () => {
|
|||||||
|
|
||||||
const onChallengeVerification = (challengeVerification) => {
|
const onChallengeVerification = (challengeVerification) => {
|
||||||
if (challengeVerification.challengeSuccess === true) {
|
if (challengeVerification.challengeSuccess === true) {
|
||||||
localStorage.setItem("toastMessage", "Challenge Success");
|
|
||||||
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
|
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
|
||||||
}
|
}
|
||||||
else if (challengeVerification.challengeSuccess === false) {
|
else if (challengeVerification.challengeSuccess === false) {
|
||||||
@@ -193,6 +192,7 @@ const Board = () => {
|
|||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
const currentCaptchaResponse = useGeneralStore.getState().captchaResponse;
|
const currentCaptchaResponse = useGeneralStore.getState().captchaResponse;
|
||||||
resolve(currentCaptchaResponse);
|
resolve(currentCaptchaResponse);
|
||||||
|
console.log('captcha response', currentCaptchaResponse)
|
||||||
setIsCaptchaOpen(false);
|
setIsCaptchaOpen(false);
|
||||||
document.removeEventListener('keydown', handleKeyDown);
|
document.removeEventListener('keydown', handleKeyDown);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ const Catalog = () => {
|
|||||||
|
|
||||||
const onChallengeVerification = (challengeVerification) => {
|
const onChallengeVerification = (challengeVerification) => {
|
||||||
if (challengeVerification.challengeSuccess === true) {
|
if (challengeVerification.challengeSuccess === true) {
|
||||||
localStorage.setItem("toastMessage", "Challenge Success");
|
|
||||||
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
|
navigate(`/p/${selectedAddress}/c/${challengeVerification.publication?.cid}`);
|
||||||
}
|
}
|
||||||
else if (challengeVerification.challengeSuccess === false) {
|
else if (challengeVerification.challengeSuccess === false) {
|
||||||
|
|||||||
@@ -846,7 +846,7 @@ const Thread = () => {
|
|||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
</BottomBar>
|
</BottomBar>
|
||||||
{comment.replyCount > 5 ? (
|
{comment.replyCount > 2 ? (
|
||||||
<div id="bottombar-mobile">
|
<div id="bottombar-mobile">
|
||||||
<TopBar selectedStyle={selectedStyle} style={{marginTop: "20px"}}>
|
<TopBar selectedStyle={selectedStyle} style={{marginTop: "20px"}}>
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
Reference in New Issue
Block a user