mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
src/trezor/ui/keyboard: don't confirm empty words
This commit is contained in:
parent
b5e142307b
commit
213e1b32ec
@ -110,7 +110,7 @@ class MnemonicKeyboard(ui.Widget):
|
||||
|
||||
if self.input.touch(event, pos) == BTN_CLICKED:
|
||||
# input press, either auto-complete or confirm
|
||||
if content == word:
|
||||
if word and content == word:
|
||||
self.edit('')
|
||||
return content
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user