fix import

This commit is contained in:
Matias Alejo Garcia 2014-12-02 17:38:31 -03:00
parent 8d7783cac3
commit ab9696fdd7
2 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ angular.module('copayApp.controllers').controller('ImportController',
if (err) {
$scope.loading = false;
$scope.error = 'Could not read wallet. Please check your password';
$rootScope.$digest();
return;
}
copay.Compatibility.deleteOldWallet(backupOldWallet);
});

View File

@ -314,7 +314,7 @@ angular.module('copayApp.services')
};
root.importWallet = function(encryptedObj, pass, opts, cb) {
copay.Compatibility.importEncryptedWallet($rootScope.iden, encryptedObj, pass, opts);
copay.Compatibility.importEncryptedWallet($rootScope.iden, encryptedObj, pass, opts, cb);
};
root.joinWallet = function(opts, cb) {