diff options
author | 2021-02-23 16:58:29 +0200 | |
---|---|---|
committer | 2021-02-23 16:58:29 +0200 | |
commit | 740348f12e4606844aa451a9b6f9b54724ff8192 (patch) | |
tree | 8e5f17e6bc63be5b763b8e422f0dec9beda21b29 /src | |
parent | Move captcha to outside of form (diff) |
Don't render captcha in closed forms
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/FormPage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx index 72049bb..9abb435 100644 --- a/src/pages/FormPage.tsx +++ b/src/pages/FormPage.tsx @@ -315,7 +315,7 @@ function FormPage(): JSX.Element { } let captcha = null; - if (!(FormFeatures.DisableAntispam in form.features)) { + if (!(FormFeatures.DisableAntispam in form.features) && open) { captcha = ( <div css={captchaStyles}> <HCaptcha |