Skip to content

Commit b59eb95

Browse files
committed
Fixing issues with trying to login
1 parent 9071b22 commit b59eb95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/controllers/controllerApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function ControllerApp(
8686
};
8787

8888
fetchUser(function(err, results) {
89-
if (!err) {
89+
if (!err && results) {
9090
thisUser = results;
9191
dataApp.data.user = results;
9292
fetchOrgs(function (err, results) {

client/services/serviceFetchInstances.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function fetchInstances(
1212
} else {
1313
currentAccountName = activeAccountName;
1414
fetchUser(function (err, user) {
15+
if (!user) { return cb(err); }
1516
currentInstances = user.fetchInstances({
1617
githubUsername: currentAccountName
1718
}, function (err) {

0 commit comments

Comments
 (0)