return empty paginated list when the wallet contains no addresses
This commit is contained in:
parent
1d9041d95a
commit
3fc8445d3e
1 changed files with 2 additions and 0 deletions
|
|
@ -2998,6 +2998,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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue