From 9b7d1d7758b0df39924c4ae192871bf21b724df6 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Wed, 29 Jan 2014 10:27:49 -0300 Subject: [PATCH] little fix --- 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 c2fc5fc..aa2584d 100755 --- a/public/js/controllers/index.js +++ b/public/js/controllers/index.js @@ -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)); } });