From 2dfff4b4afc7b22fa417186396809d826f399e51 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 3 Dec 2014 13:58:27 -0300 Subject: [PATCH] rollbacks history (fixed in another pull request) --- js/controllers/history.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/controllers/history.js b/js/controllers/history.js index 90b33c783..82c387d12 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -90,10 +90,8 @@ angular.module('copayApp.controllers').controller('HistoryController', if (!err && res) { _.each(res, function(r) { var tx = index[r.ts]; - if (tx) { - var alternativeAmount = (r.rate != null ? tx.amountSat * rateService.SAT_TO_BTC * r.rate : null); - tx.alternativeAmount = alternativeAmount ? $filter('noFractionNumber')(alternativeAmount, 2) : null; - } + var alternativeAmount = (r.rate != null ? tx.amountSat * rateService.SAT_TO_BTC * r.rate : null); + tx.alternativeAmount = alternativeAmount ? $filter('noFractionNumber')(alternativeAmount, 2) : null; }); setTimeout(function() { $scope.$digest();