wallet: trim text on paste at creation

This commit is contained in:
ardocrat 2024-05-26 09:16:33 +03:00
parent 4c438ab0da
commit 4b46e5a997

View file

@ -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);
}); });
} }