From 4965a76322566bfe46f15787a86806ad32db9b7c Mon Sep 17 00:00:00 2001 From: Sam Cheng Hung Date: Mon, 16 Apr 2018 11:26:08 +0800 Subject: [PATCH] Fix: Send Max still being used even though user selected No the Send Max prompt --- src/js/controllers/amount.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index 15d7b27e6..16724bf18 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -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 {