From d9b8285fac1288e895d4b460646f73c664d1a2ff Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:07:50 +0000 Subject: [PATCH] gui: fix cargo fmt --- gui/src/app/view/spend/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/src/app/view/spend/mod.rs b/gui/src/app/view/spend/mod.rs index be4d451f..70285ff3 100644 --- a/gui/src/app/view/spend/mod.rs +++ b/gui/src/app/view/spend/mod.rs @@ -176,7 +176,10 @@ pub fn create_spend_tx<'a>( Message::CreateSpend(CreateSpendMessage::FeerateEdited(msg)) }, ) - .warning("Feerate must be an integer less than or equal to 1000 sats/vbyte") + .warning( + "Feerate must be an integer less than \ + or equal to 1000 sats/vbyte", + ) .size(20) .padding(10), ) @@ -253,7 +256,8 @@ pub fn create_spend_tx<'a>( .width(Length::Fixed(100.0)), ) .push( - if is_valid && !duplicate + if is_valid + && !duplicate && (is_self_send || (total_amount < *balance_available && Some(&Amount::from_sat(0)) == amount_left))