From daf8d7b53f89412287ed86d7e6fb5599a9a2926e Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 10 Apr 2017 13:12:30 +0800 Subject: [PATCH] dont show zero txs in view_only mode --- html/js/controllers/account.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/js/controllers/account.js b/html/js/controllers/account.js index 2502e7a..ad33aaa 100755 --- a/html/js/controllers/account.js +++ b/html/js/controllers/account.js @@ -183,7 +183,6 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q j--; } } - } } //console.log(transactions[i].total_received, transactions[i].total_sent); @@ -206,7 +205,9 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q { //remove tx if zero xmr recievied. probably spent only tx, //but we dont have spendkey to verify this. - if (new JSBigInt(transactions[i].total_received).compare(0) === true) + //console.log(new JSBigInt(transactions[i].total_received)); + //console.log(new JSBigInt(transactions[i].total_received).compare(0)); + if (new JSBigInt(transactions[i].total_received).compare(0) <= 0) { transactions.splice(i, 1); i--;