mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-17 14:21:24 +02:00
fix: check for empty amount at request creation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user