mirror of https://github.com/BTCPrivate/copay.git
fixed issue with NaNs in getTxHistory
This commit is contained in:
parent
72cc5a1a28
commit
36a0996f0f
|
@ -2683,6 +2683,9 @@ Wallet.prototype.getTransactionHistory = function(opts, cb) {
|
||||||
if (addresses.length > 0) {
|
if (addresses.length > 0) {
|
||||||
var from = (opts.currentPage - 1) * opts.itemsPerPage;
|
var from = (opts.currentPage - 1) * opts.itemsPerPage;
|
||||||
var to = opts.currentPage * opts.itemsPerPage;
|
var to = opts.currentPage * opts.itemsPerPage;
|
||||||
|
if (!_.isNumber(from) || _.isNaN(from)) from = 0;
|
||||||
|
if (!_.isNumber(to) || _.isNaN(to)) to = null;
|
||||||
|
|
||||||
self.blockchain.getTransactions(addresses, from, to, function(err, res) {
|
self.blockchain.getTransactions(addresses, from, to, function(err, res) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue