FIX: `undefined` text on user profile

This commit is contained in:
Robin Ward 2016-05-11 16:25:43 -04:00
parent c06a6a96cc
commit f401d8d7de
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@
export function htmlHelper(fn) {
if (Ember.Helper) {
return Ember.Helper.helper(function() {
return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)));
return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)) || '');
});
} else {
return Ember.Handlebars.makeBoundHelper(function() {
return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)));
return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)) || '');
});
}
}