From 7b3432938ce38e36adaa06c6a582d2f484a39c74 Mon Sep 17 00:00:00 2001 From: tony Date: Fri, 7 Jun 2019 18:16:58 +0300 Subject: [PATCH] old style js --- src/js/controllers/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 36982fa09..69885ed55 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -34,7 +34,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r var exchangeRates = require('ocore/network.js').exchangeRates; var totalUSDBalance = 0; - for (var balance of self.arrBalances){ + for (var i = 0; i < self.arrBalances.length; i++){ + var balance = self.arrBalances[i]; var completeBalance = (balance.total + (balance.shared || 0)) if (!balance.pending && balance.asset === 'base' && exchangeRates.GBYTE_USD && balance.total) { totalUSDBalance += completeBalance / 1e9 * exchangeRates.GBYTE_USD;