return empty paginated list when the wallet contains no addresses

This commit is contained in:
Ivan Socolsky 2014-11-12 17:49:41 -03:00
parent 1d9041d95a
commit 3fc8445d3e
1 changed files with 2 additions and 0 deletions

View File

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