diff options
| author | 2021-02-21 11:27:24 +0200 | |
|---|---|---|
| committer | 2021-02-21 11:27:24 +0200 | |
| commit | 37b521cd3b3090427fb67fa4316b8aaa52388a1c (patch) | |
| tree | e4fe9df95d35a524058ab162cdb9ca1359715aec /src | |
| parent | Implement basic hCaptcha (diff) | |
Remove debug logging and use HCaptcha object for ref
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/FormPage.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
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}`); |