Skip to content

Commit

Permalink
check for existence of user
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Jun 16, 2014
1 parent 43749a3 commit 760b133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/lib/globalhelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Handlebars.registerHelper('formatDuration', function(input){
});

Handlebars.registerHelper('username', function(user){
if (!user)
return;
if (user.username)
return user.username;
if (user.emails) {
Expand Down

0 comments on commit 760b133

Please sign in to comment.