diff --git a/app/client/globalHelpers/patreonLoginUrl.js b/app/client/globalHelpers/patreonLoginUrl.js index dbce866d..ab2c8a43 100644 --- a/app/client/globalHelpers/patreonLoginUrl.js +++ b/app/client/globalHelpers/patreonLoginUrl.js @@ -1,9 +1,14 @@ +import { format as formatUrl } from 'url'; + const CLIENT_ID = Meteor.settings && Meteor.settings.public.patreon && Meteor.settings.public.patreon.clientId; Template.registerHelper("patreonLoginUrl", function() { - if (!CLIENT_ID) return; + if (!CLIENT_ID) { + console.warn('Could not find Meteor.settings.public.patreon.clientId to make patreon link') + return; + } return formatUrl({ protocol: 'https', host: 'patreon.com', diff --git a/app/client/views/user/profile/profile.js b/app/client/views/user/profile/profile.js index f3df5f10..c0310773 100644 --- a/app/client/views/user/profile/profile.js +++ b/app/client/views/user/profile/profile.js @@ -1,5 +1,3 @@ -import { format as formatUrl } from 'url'; - Template.profile.onCreated(function(){ this.showApiKey = new ReactiveVar(false); this.loadingPatreon = new ReactiveVar(false);