fix derivation index

This commit is contained in:
Matias Alejo Garcia 2015-09-04 22:15:50 -03:00
commit b712874c17
5 changed files with 7 additions and 7 deletions

View file

@ -139,13 +139,13 @@ angular.module('copayApp.controllers').controller('importController',
this.error = null;
if (!words) {
this.error = gettext('Please enter the backup words');
this.error = gettext('Please enter the seed words');
} else {
var wordList = words.split(/ /).filter(function(v) {
return v.length > 0;
});
if (wordList.length != 12)
this.error = gettext('Please enter 12 backup words');
if ((wordList.length % 3) != 0)
this.error = gettext('Wrong number of seed words:') + wordList.length;
else
words = wordList.join(' ');
}