From 86e98ca0a30006ad4a81591bcb162fdf3747b631 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 13 Sep 2016 00:16:31 +0200 Subject: [PATCH] Fix home view when user not connected --- inc/myco.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/myco.js b/inc/myco.js index d4f84f3..c177b4d 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -109,8 +109,11 @@ view_home=function() { sum+=value; diff='+'+value.toFixed(2)+' €'; } - tbody.html(tbody.html()+''+balances[g].name+''+diff+''); } + else { + diff=$(' '); + } + tbody.html(tbody.html()+''+balances[g].name+''+diff+''); } $('#view-home #mybalances a.group-link').bind('click',function(e) { g=$(e.target).data('uuid');