fix(@desktop/wallet): validation of a seed phrase if it contains a word of length 3 fixed

This commit is contained in:
Sale Djenic 2022-09-23 13:14:40 +02:00 committed by saledjenic
parent 64f167a32d
commit db1bbef0e1
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ StatusGridView {
for (let i = 0; i < words.length; i++) {
try {
grid.itemAtIndex(i).setWord(words[i])
if (words[i].length === 3) {
grid.addWord(i + 1, words[i])
}
} catch (e) {
// Getting items outside of the current view might not work
}