From 5a92dd3980a7ddf6ca76a3c4c6f2accef6725bbe Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 29 Feb 2016 10:25:41 -0300 Subject: [PATCH] fix unit check --- src/js/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 4a28fe017..7ff9ac496 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -817,7 +817,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r var config = configService.getSync().wallet.settings; var fixTxsUnit = function(txs) { - if (!txs || !txs[0]) return; + if (!txs || !txs[0] || !txs[0].amountStr) return; var cacheUnit = txs[0].amountStr.split(' ')[1];