From faf47125a59a3a141b536064d9af2469f6030e03 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Mon, 22 Apr 2024 21:55:34 +0300 Subject: [PATCH] fix: check for empty amount at request creation --- src/gui/views/wallets/wallet/messages.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/views/wallets/wallet/messages.rs b/src/gui/views/wallets/wallet/messages.rs index fe6dbfb..3000cd4 100644 --- a/src/gui/views/wallets/wallet/messages.rs +++ b/src/gui/views/wallets/wallet/messages.rs @@ -638,6 +638,9 @@ impl WalletMessages { columns[1].vertical_centered_justified(|ui| { // Button to create Slatepack message for request. View::button(ui, t!("continue"), Colors::WHITE, || { + if self.amount_edit.is_empty() { + return; + } if let Ok(a) = amount_from_hr_string(self.amount_edit.as_str()) { let message = if self.send_request { wallet.send(a)