Skip to content

Commit

Permalink
Update pr
Browse files Browse the repository at this point in the history
  • Loading branch information
gela committed Apr 16, 2015
1 parent 305a39a commit d446fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/nodes/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PersonNode.prototype.setTitle = function (person) {
*/
PersonNode.prototype.getEmail = function (person) {
this.email = utility.getLanguages().reduce(function (prev, lang) {
prev[lang] = util.format('%s', person[lang]['email']);
prev[lang] = person[lang].email[0] || '';
return prev;
}, {});
return this;
Expand Down

0 comments on commit d446fcd

Please sign in to comment.