diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index f88be4106..1da3e07b2 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -560,6 +560,14 @@ angular.module('copayApp.services') return cb(gettext('Could not import. Check input file and spending password')); } + if (walletClient.hasPrivKeyEncrypted()) { + try { + walletClient.disablePrivateKeyEncryption(); + } catch (e) { + $log.warn(e); + } + } + str = JSON.parse(str); var addressBook = str.addressBook || {};