From 7c8c33a0c74480eb6193c642cf1b3a3993400538 Mon Sep 17 00:00:00 2001 From: Sam Cheng Hung Date: Wed, 11 Apr 2018 17:00:24 +0800 Subject: [PATCH] Update: Downgrades arrow function syntax to satisfy UglifyJS --- src/js/services/profileService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 55185c470..09ba746f4 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -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) {