mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix captchaResponse
This commit is contained in:
@@ -188,9 +188,10 @@ const Board = () => {
|
|||||||
challengeImg.onload = () => {
|
challengeImg.onload = () => {
|
||||||
setIsCaptchaOpen(true);
|
setIsCaptchaOpen(true);
|
||||||
|
|
||||||
const handleKeyDown = (event) => {
|
const handleKeyDown = async (event) => {
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
resolve(captchaResponse);
|
const currentCaptchaResponse = useGeneralStore.getState().captchaResponse;
|
||||||
|
resolve(currentCaptchaResponse);
|
||||||
setIsCaptchaOpen(false);
|
setIsCaptchaOpen(false);
|
||||||
document.removeEventListener('keydown', handleKeyDown);
|
document.removeEventListener('keydown', handleKeyDown);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user