fix import if no words enter

This commit is contained in:
Gabriel Bazán 2016-12-29 13:37:00 -03:00
parent c65636e8db
commit cd331a64db
1 changed files with 1 additions and 0 deletions

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) {