fix(StatusSeedPhraseInput): remove empty spaces in seed phrase input (#611)

This commit is contained in:
Jonathan Rainville 2022-03-30 14:23:18 -04:00 committed by GitHub
parent 43b8e43303
commit 07fa2a1b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Item {
seedSuggestionsList.model = filteredList;
if ((text.length === 4) && (filteredList.count === 1) &&
((input.edit.keyEvent !== Qt.Key_Backspace) && (input.edit.keyEvent !== Qt.Key_Delete))) {
seedWordInput.text = filteredList.get(0).seedWord;
seedWordInput.text = filteredList.get(0).seedWord.trim();
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
seedSuggestionsList.model = 0;
root.doneInsertingWord(seedWordInput.text);