Fix home view when user not connected
Benjamin Renard

Benjamin Renard commited on 2016-09-12 22:16:31
Showing 1 changed files, with 4 additions and 1 deletions.

... ...
@@ -109,8 +109,11 @@ view_home=function() {
109 109
           sum+=value;
110 110
           diff='<td class="positive">+'+value.toFixed(2)+' €</td>';
111 111
         }
112
-        tbody.html(tbody.html()+'<tr><td><a class="group-link" data-uuid="'+g+'">'+balances[g].name+'</a></td>'+diff+'</tr>');
113 112
       }
113
+      else {
114
+        diff=$('<td>&nbsp;</td>');
115
+      }
116
+      tbody.html(tbody.html()+'<tr><td><a class="group-link" data-uuid="'+g+'">'+balances[g].name+'</a></td>'+diff+'</tr>');
114 117
     }
115 118
     $('#view-home #mybalances a.group-link').bind('click',function(e) {
116 119
       g=$(e.target).data('uuid');
117 120