diff --git a/templates/home.html b/templates/home.html
index b074eb828fe1348342f34b02c95e4ab6491c2c41..4145407bfd4584af27c5a8b4366a7dcf54922e5c 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -3,7 +3,7 @@
    <head>
          <link href="{{ url_for('static', filename='style.css') }}" rel="stylesheet">
          <title>URL shorter</title>
-         {% if recaptchaPrivateKey %}
+         {% if recaptchaPublicKey %}
             <script src="https://www.google.com/recaptcha/api.js" async defer></script>
             <script>
                function onSubmit(token) {