diff --git a/frontend/express/public/javascripts/countly/countly.template.js b/frontend/express/public/javascripts/countly/countly.template.js index 2873caaf92b..82a3c755af4 100644 --- a/frontend/express/public/javascripts/countly/countly.template.js +++ b/frontend/express/public/javascripts/countly/countly.template.js @@ -1553,7 +1553,7 @@ var AppRouter = Backbone.Router.extend({ CountlyHelpers.initializeTextSelect(); CountlyHelpers.initializeMultiSelect(); - if (countlyGlobal.licenseNotification && countlyGlobal.licenseNotification.length && !_.isEmpty(countlyGlobal.apps)) { + if (countlyGlobal.licenseError && countlyGlobal.licenseNotification && countlyGlobal.licenseNotification.length && !_.isEmpty(countlyGlobal.apps)) { for (var idx = 0; idx < countlyGlobal.licenseNotification.length; idx++) { countlyGlobal.licenseNotification[idx].id = countlyCommon.generateId(); CountlyHelpers.notify(countlyGlobal.licenseNotification[idx]); @@ -4100,4 +4100,4 @@ $.ajaxPrefilter(function(options, originalOptions, jqXHR) { } } } -}); \ No newline at end of file +});