fix in no-mnemonics

This commit is contained in:
Matias Alejo Garcia 2015-09-18 10:27:36 -03:00
commit 337dfcf290

View file

@ -26,9 +26,10 @@ angular.module('copayApp.controllers').controller('wordsController',
var fc = profileService.focusedClient; var fc = profileService.focusedClient;
var words = fc.getMnemonic(); var words = fc.getMnemonic();
if (words) if (words) {
this.mnemonicWords = words.split(/[\u3000\s]+/); this.mnemonicWords = words.split(/[\u3000\s]+/);
this.mnemonicHasPassphrase = fc.mnemonicHasPassphrase(); this.mnemonicHasPassphrase = fc.mnemonicHasPassphrase();
this.useIdeograms = words.indexOf("\u3000") >= 0; this.useIdeograms = words.indexOf("\u3000") >= 0;
}
}); });