fix case for empty tx list

This commit is contained in:
Ivan Socolsky 2014-11-10 11:15:58 -03:00
commit abae8d43e4

View file

@ -2962,8 +2962,6 @@ Wallet.prototype.getTransactionHistory = function(opts, cb) {
};
function paginate(list, currentPage, itemsPerPage) {
if (list.length == 0) return list;
var res = {
itemsPerPage: itemsPerPage || list.length,
currentPage: currentPage || 1,