mirror of
https://github.com/resume/resume.github.com.git
synced 2026-01-06 03:30:01 -06:00
Display organizations login if name isn't available
This commit is contained in:
@@ -235,7 +235,7 @@ var run = function() {
|
||||
var sorted = [];
|
||||
|
||||
orgs.forEach(function(elm, i, arr) {
|
||||
if (arr[i].name === undefined) {
|
||||
if (arr[i].login === undefined) {
|
||||
return;
|
||||
}
|
||||
sorted.push({position: i, info: arr[i]});
|
||||
@@ -253,9 +253,9 @@ var run = function() {
|
||||
if (itemCount >= maxItems) {
|
||||
return;
|
||||
}
|
||||
var name = (arr[index].info.name || arr[index].info.login);
|
||||
var view = {
|
||||
name: arr[index].info.name,
|
||||
login: arr[index].info.login,
|
||||
name: name,
|
||||
now: now
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user