From db05d964e138ec033e20b7c648de204a9fee7341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Mon, 5 Dec 2016 10:50:54 -0300 Subject: [PATCH] handle prompt cancel --- src/js/controllers/confirm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index f8b3bbf72..23a7e6590 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -450,6 +450,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( var title = gettextCatalog.getString("Please, enter the code below"); var message = gettextCatalog.getString("A SMS containing a confirmation code was sent to your phone."); popupService.showPrompt(title, message, null, function(twoFaCode) { + if (typeof twoFaCode == 'undefined') return; if ($scope.glideraBuy) { $scope.buyRequest(wallet, twoFaCode, function(err, data) { if (err) {