fix delete words

This commit is contained in:
Javier 2016-06-16 13:54:10 -03:00
commit a4e3cbe463
3 changed files with 2 additions and 4 deletions

View file

@ -9,8 +9,7 @@
<div ng-show="!backupWalletPlainText">
<div class="text-warning size-14 m20b" ng-show="error">
<i class="fi-alert size-12"></i>
<span ng-show="!touchIdError" translate>Failed to export</span>
<span ng-show="touchIdError">{{touchIdError}}</span>
<span translate>Failed to export</span>
</div>
<div class="row">

View file

@ -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;

View file

@ -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();
});