From 722761b667dd97b267479c9b9fa61fdc320e60ac Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Dec 2017 07:22:40 +0100 Subject: linking stuff --- public/assets/js/lib/views/profile/profile.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'public/assets/js/lib/views') 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}}/, 'send ' + username + ' a message') - $table.append(t) - }) - + var t = this.template.replace(/{{key}}/, " ") + .replace(/{{value}}/, 'send ' + username + ' a message') + $table.append(t) }, }) -- cgit v1.2.3-70-g09d2