aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-21 11:27:24 +0200
committerGravatar ks129 <[email protected]>2021-02-21 11:27:24 +0200
commit37b521cd3b3090427fb67fa4316b8aaa52388a1c (patch)
treee4fe9df95d35a524058ab162cdb9ca1359715aec /src
parentImplement basic hCaptcha (diff)
Remove debug logging and use HCaptcha object for ref
Diffstat (limited to 'src')
-rw-r--r--src/pages/FormPage.tsx4
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}`);