From a4e3cbe4637cdd0f34d657c75747073b4779997a Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 16 Jun 2016 13:54:10 -0300 Subject: [PATCH] fix delete words --- public/views/export.html | 3 +-- src/js/controllers/export.js | 1 - src/js/controllers/preferencesDeleteWords.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/views/export.html b/public/views/export.html index 717bae80a..75a4aaa4f 100644 --- a/public/views/export.html +++ b/public/views/export.html @@ -9,8 +9,7 @@
- Failed to export - {{touchIdError}} + Failed to export
diff --git a/src/js/controllers/export.js b/src/js/controllers/export.js index 7014f3ced..be7b6dcc7 100644 --- a/src/js/controllers/export.js +++ b/src/js/controllers/export.js @@ -7,7 +7,6 @@ angular.module('copayApp.controllers').controller('exportController', var isCordova = platformInfo.isCordova; var fc = profileService.focusedClient; $scope.isEncrypted = fc.isPrivKeyEncrypted(); - $scope.touchIdError = null; $scope.error = null; $scope.success = null; diff --git a/src/js/controllers/preferencesDeleteWords.js b/src/js/controllers/preferencesDeleteWords.js index 2906cea2c..af7a9b140 100644 --- a/src/js/controllers/preferencesDeleteWords.js +++ b/src/js/controllers/preferencesDeleteWords.js @@ -12,7 +12,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWordsControl confirmDialog.show(msg, function(ok) { if (ok) { fc.clearMnemonic(); - profileService.updateCredentials(fc.export(), function() { + profileService.updateCredentials(JSON.parse(fc.export()), function() { notification.success(successMsg); go.walletHome(); });