From fabb8848315b70d404468481e8d6b2cfb960a34c Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 10 May 2019 10:03:01 +0200 Subject: [PATCH] Fixed issue with Link Generation to connect patreon account --- app/client/globalHelpers/patreonLoginUrl.js | 7 ++++++- app/client/views/user/profile/profile.js | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) 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);