diff --git a/index.html b/index.html
index 77c8734be..f0e62f8e7 100644
--- a/index.html
+++ b/index.html
@@ -390,7 +390,7 @@
-
+
Show all
Show less
diff --git a/js/filters.js b/js/filters.js
index cde5fd209..d5f5821e3 100644
--- a/js/filters.js
+++ b/js/filters.js
@@ -17,41 +17,16 @@ angular.module('copayApp.filters', [])
})
.filter('limitAddress', function() {
return function(elements, showAll) {
- var addrs = [];
- if (elements.length > 0) {
- if (showAll) {
- return elements;
- }
- if (elements.length == 1) {
- return elements;
- }
- else {
- for (var i=0;i 0) {
- addrs.push(elements[i]);
- }
- }
- return addrs;
- }
+ if (elements.length <= 1 || showAll) {
+ return elements;
}
- };
- })
- .filter('withoutFunds', function() {
- return function(elements) {
- var len = 0;
- for (var i=0;i 0);
+ });
+
+ return addrs;
};
})
;