handle prompt cancel

This commit is contained in:
Gabriel Bazán 2016-12-05 10:50:54 -03:00
parent 55cf51efce
commit db05d964e1
1 changed files with 1 additions and 0 deletions

View File

@ -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) {