Update: Downgrades arrow function syntax to satisfy UglifyJS

This commit is contained in:
Sam Cheng Hung 2018-04-11 17:00:24 +08:00
commit 7c8c33a0c7

View file

@ -1072,7 +1072,7 @@ angular.module('copayApp.services')
// Calculate wallets total balance (Promise). Attempts to fix asynchronous issue with cachedBalance not being available when it's needed
root.getWalletsBalance = function(wallets) {
return new Promise((resolve, reject) => {
return new Promise(function(resolve, reject) {
var totalBalance = 0;
// Manually call getLastKnownBalance for each wallet ID
wallets.forEach(function(value, index, array) {