diff --git a/src/gui/views/wallets/creation/mnemonic.rs b/src/gui/views/wallets/creation/mnemonic.rs index 7100ae1..f243a45 100644 --- a/src/gui/views/wallets/creation/mnemonic.rs +++ b/src/gui/views/wallets/creation/mnemonic.rs @@ -304,6 +304,8 @@ impl MnemonicSetup { columns[1].vertical_centered_justified(|ui| { // Callback to save the word. let mut save = || { + self.word_edit = self.word_edit.trim().to_string(); + // Check if word is valid. let word_index = self.word_num_edit - 1; if !self.mnemonic.is_valid_word(&self.word_edit, word_index) {