From 4b46e5a997cd62c7029e956f8919c2e85ecd6301 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sun, 26 May 2024 09:16:33 +0300 Subject: [PATCH] wallet: trim text on paste at creation --- src/gui/views/wallets/creation/creation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/wallets/creation/creation.rs b/src/gui/views/wallets/creation/creation.rs index 5f76907..b53e691 100644 --- a/src/gui/views/wallets/creation/creation.rs +++ b/src/gui/views/wallets/creation/creation.rs @@ -229,7 +229,7 @@ impl WalletCreation { // Show paste button. let p_t = format!("{} {}", CLIPBOARD_TEXT, t!("paste").to_uppercase()); 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); }); }