mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1797 from isocolsky/pagination
return empty paginated list when the wallet contains no addresses
This commit is contained in:
commit
b5d502273d
|
@ -3000,6 +3000,8 @@ Wallet.prototype.getTransactionHistory = function(opts, cb) {
|
|||
|
||||
return cb(null, paginate(history, opts.currentPage, opts.itemsPerPage));
|
||||
});
|
||||
} else {
|
||||
return paginate([], opts.currentPage, opts.ItemsPerPage);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue