From b4ad22b634453a689a591b8f4684a752413e2434 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Thu, 23 Jan 2014 18:58:54 -0300 Subject: [PATCH] limited live transactions --- public/js/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/controllers/index.js b/public/js/controllers/index.js index d6e526e..3e76640 100755 --- a/public/js/controllers/index.js +++ b/public/js/controllers/index.js @@ -33,7 +33,7 @@ angular.module('insight.system').controller('IndexController', var txStr = tx.txid.toString(); console.log('Transaction received! ' + JSON.stringify(tx)); if (parseInt($scope.txs.length, 10) > parseInt(TRANSACTION_DISPLAYED, 10) - 1) { - $scope.txs.slice(Math.max($scope.txs.length - TRANSACTION_DISPLAYED, 1)); + $scope.txs = $scope.txs.slice(Math.max($scope.txs.length - TRANSACTION_DISPLAYED, 1)); } _getTransaction(txStr);