diff --git a/templates/home.html b/templates/home.html
index f3381d4e356b36f772c6aa9238c3eef22cfe1b60..b074eb828fe1348342f34b02c95e4ab6491c2c41 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -30,7 +30,7 @@
                   {% endif %}
                   <input id="short" name="short" type="text" placeholder="short name" value="{{short_url_prefilled}}"/>
 
-                  {% if recaptchaPrivateKey %}
+                  {% if recaptchaPublicKey %}
                   <button class="g-recaptcha" data-sitekey="{{recaptchaPublicKey}}" data-callback='onSubmit'>short</button>
                   {% else %}
                   <button>short</button>