Merge pull request #1797 from isocolsky/pagination

return empty paginated list when the wallet contains no addresses
This commit is contained in:
Matias Alejo Garcia 2014-11-13 10:46:37 -03:00
commit b5d502273d
1 changed files with 2 additions and 0 deletions

View File

@ -3000,6 +3000,8 @@ Wallet.prototype.getTransactionHistory = function(opts, cb) {
return cb(null, paginate(history, opts.currentPage, opts.itemsPerPage)); return cb(null, paginate(history, opts.currentPage, opts.itemsPerPage));
}); });
} else {
return paginate([], opts.currentPage, opts.ItemsPerPage);
} }
}; };