From fb3026f3c4b1ec8a0755685bf5e9379cb9214bbc Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 8 May 2015 12:02:11 -0300 Subject: [PATCH] no future transactions --- src/js/controllers/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 3d379bd4d..bb05060b9 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -334,6 +334,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.txHistoryPaging = txs[self.limitHistory] ? true : false; lodash.each(txs, function(tx) { tx.ts = tx.minedTs || tx.sentTs; + // no future transaction... + if (tx.ts > now) + ts.ts = now; tx.rateTs = Math.floor((tx.ts || now) / 1000); tx.amountStr = profileService.formatAmount(tx.amount); //$filter('noFractionNumber')( if (c < self.limitHistory) {