From 37b521cd3b3090427fb67fa4316b8aaa52388a1c Mon Sep 17 00:00:00 2001
From: ks129 <45097959+ks129@users.noreply.github.com>
Date: Sun, 21 Feb 2021 11:27:24 +0200
Subject: Remove debug logging and use HCaptcha object for ref

---
 src/pages/FormPage.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/pages/FormPage.tsx')

diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx
index c06b33c..865497c 100644
--- a/src/pages/FormPage.tsx
+++ b/src/pages/FormPage.tsx
@@ -186,7 +186,7 @@ function FormPage(): JSX.Element {
     const [sent, setSent] = useState<boolean>();
 
     // eslint-disable-next-line @typescript-eslint/no-explicit-any
-    const captchaRef = useRef<any>();
+    const captchaRef = useRef<HCaptcha>(null);
 
     useEffect(() => {
         dispatch(clean());
@@ -293,9 +293,7 @@ function FormPage(): JSX.Element {
 
                 case QuestionType.Checkbox: {
                     if (typeof options !== "string") {
-                        console.log(values);
                         const checkbox_values = values.get(question.id);
-                        console.log(checkbox_values);
                         const keys: Map<string, string> = new Map();
                         options.forEach((val: string, index) => {
                             keys.set(val, `${("000" + index).slice(-4)}. ${val}`);
-- 
cgit v1.2.3

