Skip to content

Commit

Permalink
old style js
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Jun 7, 2019
1 parent 8f55deb commit 7b34329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b34329

Please sign in to comment.