(error); } }; const handleQuizClose = async () => { let token = localStorage.getItem("authToken"); let url = `https://quizzie-api.herokuapp.com/quiz/close`; let captcha = await executeRecaptcha("quiz_close"); let data = { quizId: quizId, captcha: captcha, }; try { await ...