From 15329b2d6342a9a838166411ef68a40337cbe00b Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 18 Aug 2016 18:15:58 -0300 Subject: [PATCH] Fix history --- src/js/controllers/walletDetails.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index 05376c1d6..0111c3e87 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -100,8 +100,8 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun if ($scope.isSearching) { $scope.txHistorySearchResults = filteredTxHistory ? filteredTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT) : []; $scope.txHistoryShowMore = filteredTxHistory.length > $scope.txHistorySearchResults.length; - } else { - $scope.txHistory = completeTxHistory ? completeTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT) : []; + } else if (completeTxHistory) { + $scope.txHistory = completeTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT); $scope.txHistoryShowMore = completeTxHistory.length > $scope.txHistory.length; } };