From ae92d91a3785352659c43bbb8941e5afd5628733 Mon Sep 17 00:00:00 2001 From: JDonadio Date: Thu, 7 Sep 2017 16:49:37 -0300 Subject: [PATCH] fix freeze app after change fee level using send max --- src/js/controllers/confirm.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index d51d3b14d..3f0af2f66 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -287,7 +287,9 @@ angular.module('copayApp.controllers').controller('confirmController', function( tx.toAmount = tx.sendMaxInfo.amount; updateAmount(); ongoingProcess.set('calculatingFee', false); - showSendMaxWarning(wallet, sendMaxInfo); + $timeout(function() { + showSendMaxWarning(wallet, sendMaxInfo); + }, 200); } // txp already generated for this wallet? @@ -347,11 +349,11 @@ angular.module('copayApp.controllers').controller('confirmController', function( $scope.buttonText = gettextCatalog.getString('Click to accept'); } } else - if (isCordova && !isWindowsPhoneApp) { - $scope.buttonText = gettextCatalog.getString('Slide to send'); - } else { - $scope.buttonText = gettextCatalog.getString('Click to send'); - } + if (isCordova && !isWindowsPhoneApp) { + $scope.buttonText = gettextCatalog.getString('Slide to send'); + } else { + $scope.buttonText = gettextCatalog.getString('Click to send'); + } };