Merge pull request #166 from colkito/fix/limit-live-transactions-homepage

little fix
This commit is contained in:
Gustavo Maximiliano Cortez 2014-01-29 05:30:32 -08:00
commit 0c81bc4177
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ angular.module('insight.system').controller('IndexController',
_getTransaction(txStr);
console.log('Transaction received! ' + JSON.stringify(tx));
if (parseInt($scope.txs.length, 10) > parseInt(TRANSACTION_DISPLAYED, 10)) {
if (parseInt($scope.txs.length, 10) >= parseInt(TRANSACTION_DISPLAYED, 10)) {
$scope.txs = $scope.txs.slice(Math.max($scope.txs.length - TRANSACTION_DISPLAYED, 1));
}
});