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') 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(); // eslint-disable-next-line @typescript-eslint/no-explicit-any - const captchaRef = useRef(); + const captchaRef = useRef(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 = new Map(); options.forEach((val: string, index) => { keys.set(val, `${("000" + index).slice(-4)}. ${val}`); -- cgit v1.2.3