From 3fb597a4cf5ad5328b50f04c881a865dd8a722c4 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Wed, 26 May 2021 12:33:31 -0700 Subject: [PATCH] FIX: Don't use `Discourse` global (#66) Discourse.SiteSettings should be this.siteSettings. --- ...gins-discourse-subscriptions-products-show-plans-show.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show.js.es6 b/assets/javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show.js.es6 index 037477d..0cb3ab7 100644 --- a/assets/javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-plugins-discourse-subscriptions-products-show-plans-show.js.es6 @@ -18,7 +18,7 @@ export default Route.extend({ interval: "month", type: "recurring", isRecurring: true, - currency: Discourse.SiteSettings.discourse_subscriptions_currency, + currency: this.siteSettings.discourse_subscriptions_currency, product: product.get("id"), metadata: { group_name: null,