Merge pull request #5376 from gabrielbazan7/fix/importPhrase

fix import if no words enter
This commit is contained in:
Javier Donadío 2016-12-30 11:49:30 -03:00 committed by GitHub
commit 283b0cc99c

View file

@ -238,6 +238,7 @@ angular.module('copayApp.controllers').controller('importController',
if (!words) {
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Please enter the recovery phrase'));
return;
} else if (words.indexOf('xprv') == 0 || words.indexOf('tprv') == 0) {
return _importExtendedPrivateKey(words, opts);
} else if (words.indexOf('xpub') == 0 || words.indexOf('tpuv') == 0) {