return empty array when search is empty

This commit is contained in:
Gabriel Bazán 2016-02-23 12:12:36 -03:00
commit 34d35929f4

View file

@ -954,7 +954,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
return [month, day, year].join('/');
};
if (lodash.isEmpty(search)) return;
if (lodash.isEmpty(search)) {
self.historyShowMore = false;
return [];
}
self.result = lodash.filter(self.completeHistory, function(tx) {
return lodash.includes(tx.amountStr, search) ||