Show nothing instead of null

If these values aren't set they would be shown as `null`. They should just be `` (empty string)
This commit is contained in:
Tarang Patel 2013-11-11 22:09:24 +02:00
parent 0bed5aa609
commit 8a506522d8

View file

@ -9,10 +9,10 @@ Template.user_edit.helpers({
return getEmail(this);
},
getTwitter: function(){
return getTwitterName(this);
return getTwitterName(this) || "";
},
getGitHub: function(){
return getGitHubName(this);
return getGitHubName(this) || "";
},
profileUrl: function(){
return Meteor.absoluteUrl()+"users/"+this.slug;