From 760b13300914c4de4702d98e0e53c7095d18591c Mon Sep 17 00:00:00 2001 From: Ramon Wijnands <rayman747@hotmail.com> Date: Mon, 16 Jun 2014 10:21:43 +0200 Subject: [PATCH] check for existence of user --- client/lib/globalhelpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/lib/globalhelpers.js b/client/lib/globalhelpers.js index be123c5..21dc622 100644 --- a/client/lib/globalhelpers.js +++ b/client/lib/globalhelpers.js @@ -14,6 +14,8 @@ Handlebars.registerHelper('formatDuration', function(input){ }); Handlebars.registerHelper('username', function(user){ + if (!user) + return; if (user.username) return user.username; if (user.emails) {