Skip to content
Browse files

Fix blank projects when some members don't have any repos.

  • Loading branch information...
1 parent 86c489a commit 63a9d2d297c4865753c8ade6758ded470cebbf05 Will White committed Nov 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/site.js
View
4 js/site.js
@@ -15,7 +15,7 @@ longneck.githubWatcherProject = function(resp) {
url: 'https://api.github.com/users/' + u.login + '/repos',
dataType: 'jsonp',
success: function(resp) {
- if (!resp.data.length) return;
+ if (!resp.data.length) return getProjects(shuffled[++i]);
var repo = _(resp.data)
.chain()
.shuffle()
@@ -25,7 +25,7 @@ longneck.githubWatcherProject = function(resp) {
.value();
if (!repo) {
- getProjects(shuffled[i++]);
+ getProjects(shuffled[++i]);
} else {
var template =
""

0 comments on commit 63a9d2d

Please sign in to comment.
Something went wrong with that request. Please try again.