diff --git a/internal_packages/github-contact-card/lib/github-user-store.es6 b/internal_packages/github-contact-card/lib/github-user-store.es6 index 71494f771..3eeb3fee5 100644 --- a/internal_packages/github-contact-card/lib/github-user-store.es6 +++ b/internal_packages/github-contact-card/lib/github-user-store.es6 @@ -80,9 +80,9 @@ class GithubUserStore extends NylasStore { // repositories. if (profile !== false) { profile.repos = []; - this._githubRequest(`https://api.github.com/search/repositories?q=user:${profile.login}&sort=stars&order=desc`, (reposErr, reposResp, data)=> { + this._githubRequest(`https://api.github.com/search/repositories?q=user:${profile.login}&sort=stars&order=desc`, (reposErr, reposResp, repos)=> { // Sort the repositories by their stars (`-` for descending order) - profile.repos = _.sortBy(data.items, (repo)=> -repo.stargazers_count); + profile.repos = _.sortBy(repos.items, (repo)=> -repo.stargazers_count); // Trigger so that our React components refresh their state and display // the updated data. this.trigger(this);