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

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)) || '');
});
}
}