diff --git a/app/views/layouts/_app_data.html.erb b/app/views/layouts/_app_data.html.erb
index 36050558..98b5805d 100644
--- a/app/views/layouts/_app_data.html.erb
+++ b/app/views/layouts/_app_data.html.erb
@@ -21,7 +21,7 @@ var app = {
, map_provider: "<%= Houdini.maps&.provider %>"
, map_provider_options: <%= Houdini.maps&.options ? raw(Houdini.maps.options.to_json) : {} %>
, editor: "<%= Houdini.page_editor.editor%>"
-<% if Settings&.page_editor&.editor == 'froala' and Settings&.page_editor&.editor_options&.froala_key %>, froala_key: "<%= Houdini.page_editor.editor_options.froala_key %>"<% end %>
+<% if Houdini.page_editor&.editor == 'froala' and Houdini.page_editor&.editor_options&.froala_key %>, froala_key: "<%= Houdini.page_editor.editor_options.froala_key %>"<% end %>
<%if @nonprofit&.currency_symbol %>, currency_symbol: "<%= @nonprofit.currency_symbol%>"<% end %>
};
diff --git a/app/views/layouts/_javascripts.html.erb b/app/views/layouts/_javascripts.html.erb
index 0f348a5b..49199d71 100644
--- a/app/views/layouts/_javascripts.html.erb
+++ b/app/views/layouts/_javascripts.html.erb
@@ -4,14 +4,14 @@
<%= render 'layouts/app_data' %>
-<% if Houdini.payment_providers.stripe.stripe_proprietary_v2_js %>
+<% if Houdini.payment_providers.stripe.proprietary_v2_js %>
<% else %>
<%= javascript_pack_tag "page__stripe_wrapper" %>
<% end %>