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 () {