Fix: Send Max still being used even though user selected No the Send Max prompt

This commit is contained in:
Sam Cheng Hung 2018-04-16 11:26:08 +08:00
commit 4965a76322

View file

@ -470,7 +470,10 @@ angular.module('copayApp.controllers').controller('amountController', function($
var u = $scope.unit == 'BCH' || $scope.unit == 'BTC' ? $scope.unit : $scope.alternativeUnit;
var message = 'Are you sure you want to send ' + u.toUpperCase() + '?';
popupService.showConfirm(message, '', 'Yes', 'No', function(res) {
if (!res) return;
if (!res) {
$scope.useSendMax = null;
return;
};
finish();
});
} else {