mirror of https://github.com/BTCPrivate/copay.git
return empty paginated list when the wallet contains no addresses
This commit is contained in:
parent
1d9041d95a
commit
3fc8445d3e
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue