diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 64c84b685..d237bf47a 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -378,13 +378,13 @@ angular.module('copayApp.services') $log.debug('Wallet is encrypted'); $rootScope.$emit('Local/NeedsPassword', false, function(err2, password) { if (err2 || !password) { - return cb(err2 || gettext('Password needed')); + return cb({message: (err2 || gettext('Password needed'))}); } try { fc.unlock(password); } catch (e) { $log.debug(e); - return cb(gettext('Wrong password')); + return cb({message: gettext('Wrong password')}); } $timeout(function() { if (fc.isPrivKeyEncrypted()) {