Fix showing QR code on address list when it shouldn't

This commit is contained in:
Yemel Jardi 2014-07-08 12:23:10 -03:00
commit cef5b72557
3 changed files with 8 additions and 2 deletions

View file

@ -19,6 +19,7 @@ angular.module('copayApp.filters', [])
})
.filter('removeEmpty', function() {
return function(elements) {
elements = elements || [];
// Hide empty addresses from other copayers
return elements.filter(function(e) {
return e.owned || e.balance > 0;