fix(Onboarding): ignore seed phrase capitalization
As requested in #8336 Closes #8336
This commit is contained in:
parent
9f076ed70c
commit
6acd816381
|
@ -133,7 +133,7 @@ Item {
|
|||
onTextChanged: {
|
||||
d.isInputValidWord = false
|
||||
filteredList.clear();
|
||||
let textToCheck = text.trim()
|
||||
let textToCheck = text.trim().toLowerCase()
|
||||
if (textToCheck !== "") {
|
||||
for (var i = 0; i < inputList.count; i++) {
|
||||
if (inputList.get(i).seedWord.startsWith(textToCheck)) {
|
||||
|
|
|
@ -306,7 +306,7 @@ Item {
|
|||
let mnemonicString = ""
|
||||
const sortTable = mnemonicInput.sort((a, b) => a.pos - b.pos)
|
||||
for (let i = 0; i < mnemonicInput.length; i++) {
|
||||
mnemonicString += sortTable[i].seed + ((i === (grid.count-1)) ? "" : " ")
|
||||
mnemonicString += sortTable[i].seed.toLowerCase() + ((i === (grid.count-1)) ? "" : " ")
|
||||
}
|
||||
|
||||
if (Utils.isMnemonic(mnemonicString) && root.startupStore.validMnemonic(mnemonicString)) {
|
||||
|
|
Loading…
Reference in New Issue