From a0ff8fc2a592a810d9f907110f9b16a6ef5ec1b2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 1 Apr 2015 13:09:08 -0400 Subject: [PATCH] fix isLoggedIntoConnect check --- dashboard-ui/thirdparty/apiclient/connectionmanager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/thirdparty/apiclient/connectionmanager.js b/dashboard-ui/thirdparty/apiclient/connectionmanager.js index 46b3037610..c56402612f 100644 --- a/dashboard-ui/thirdparty/apiclient/connectionmanager.js +++ b/dashboard-ui/thirdparty/apiclient/connectionmanager.js @@ -455,7 +455,10 @@ self.isLoggedIntoConnect = function () { // Make sure it returns true or false - return (self.connectToken() && self.connectUserId()) == true; + if (!self.connectToken() || !self.connectUserId()) { + return false; + } + return true; }; self.logout = function () {