mirror of
https://github.com/resume/resume.github.com.git
synced 2026-05-11 22:10:11 -05:00
Merge pull request #165 from chocolateboy/fix_username
fix view.name for accounts without a "friendly" name
This commit is contained in:
+4
-1
@@ -142,8 +142,11 @@ var run = function() {
|
||||
addHttp = 'http://';
|
||||
}
|
||||
|
||||
// set view.name to the "friendly" name e.g. "John Doe". If not defined
|
||||
// (in which case data.name is empty), fall back to the login
|
||||
// name e.g. "johndoe"
|
||||
var name = username;
|
||||
if (data.name !== null && data.name !== undefined) {
|
||||
if (data.name !== null && data.name !== undefined && data.name.length) {
|
||||
name = data.name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user