From 3fc8445d3e26f1de10ccf019aff5ada9990d6974 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 12 Nov 2014 17:49:41 -0300 Subject: [PATCH] return empty paginated list when the wallet contains no addresses --- js/models/Wallet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/models/Wallet.js b/js/models/Wallet.js index a2cffb06d..df33cc2c5 100644 --- a/js/models/Wallet.js +++ b/js/models/Wallet.js @@ -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); } };