diff --git a/www/profile/main.js b/www/profile/main.js index 102ef01b1..ac8ea22c6 100644 --- a/www/profile/main.js +++ b/www/profile/main.js @@ -373,7 +373,7 @@ define([ var $block = $('
', {id: DESCRIPTION_ID}).appendTo($container); if (APP.readOnly) { - if (!APP.lm.proxy.description.trim()) { return void $block.hide(); } + if (!(APP.lm.proxy.description || "").trim()) { return void $block.hide(); } var $div = $('
', {'class': 'rendered'}).appendTo($block); var val = Marked(APP.lm.proxy.description); $div.html(val);