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:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user