summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/profile/profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/profile/profile.js')
-rw-r--r--public/assets/js/lib/views/profile/profile.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/public/assets/js/lib/views/profile/profile.js b/public/assets/js/lib/views/profile/profile.js
index 34c8fba..d8bc535 100644
--- a/public/assets/js/lib/views/profile/profile.js
+++ b/public/assets/js/lib/views/profile/profile.js
@@ -34,13 +34,9 @@ var ProfileView = View.extend({
$table.append(t)
})
- var fields = "message".split(" ").map((key) => {
- if (! user[key]) return;
- var t = this.template.replace(/{{key}}/, " ")
- .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
- $table.append(t)
- })
-
+ var t = this.template.replace(/{{key}}/, "&nbsp;")
+ .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
+ $table.append(t)
},
})