Skip to content

Commit

Permalink
DM-4340: Don't render RECAPTCHA if key isn't available (#748)
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Villa <[email protected]>
  • Loading branch information
camillevilla and camillevilla authored Dec 11, 2023
1 parent fa03eb1 commit 88c91c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_email_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
<input type="submit" value="Send message" class="usa-button margin-right-0">
</div>

<%= recaptcha_v3(action: 'email', site_key: ENV['RECAPTCHA_SITE_KEY_V3']) %>
<%= recaptcha_v3(action: 'email', site_key: ENV['RECAPTCHA_SITE_KEY_V3']) if ENV['RECAPTCHA_SITE_KEY_V3'] %>
<% end %>

0 comments on commit 88c91c1

Please sign in to comment.