wallet: trim text on paste at creation
This commit is contained in:
parent
4c438ab0da
commit
4b46e5a997
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ impl WalletCreation {
|
||||||
// Show paste button.
|
// Show paste button.
|
||||||
let p_t = format!("{} {}", CLIPBOARD_TEXT, t!("paste").to_uppercase());
|
let p_t = format!("{} {}", CLIPBOARD_TEXT, t!("paste").to_uppercase());
|
||||||
View::button(ui, p_t, Colors::WHITE, || {
|
View::button(ui, p_t, Colors::WHITE, || {
|
||||||
let data = ZeroingString::from(cb.get_string_from_buffer());
|
let data = ZeroingString::from(cb.get_string_from_buffer().trim());
|
||||||
self.mnemonic_setup.mnemonic.import_text(&data);
|
self.mnemonic_setup.mnemonic.import_text(&data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue