From 740348f12e4606844aa451a9b6f9b54724ff8192 Mon Sep 17 00:00:00 2001
From: ks129 <45097959+ks129@users.noreply.github.com>
Date: Tue, 23 Feb 2021 16:58:29 +0200
Subject: Don't render captcha in closed forms

---
 src/pages/FormPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

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
-- 
cgit v1.2.3

