fix(Onboarding): ignore seed phrase capitalization

As requested in #8336

Closes #8336
This commit is contained in:
Pascal Precht 2022-11-21 14:50:58 +01:00 committed by r4bbit.eth
parent 9f076ed70c
commit 6acd816381
2 changed files with 2 additions and 2 deletions

View File

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

View File

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