From afc4636ad98bcff9ab2b63f3fbf08f9318031cf9 Mon Sep 17 00:00:00 2001 From: edouard Date: Mon, 9 Jan 2023 14:46:30 +0100 Subject: [PATCH] Forbid next step if amount sent > available amount --- gui/src/app/view/spend/step.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/app/view/spend/step.rs b/gui/src/app/view/spend/step.rs index f1dfbd85..ffc0b81c 100644 --- a/gui/src/app/view/spend/step.rs +++ b/gui/src/app/view/spend/step.rs @@ -68,7 +68,7 @@ pub fn choose_recipients_view<'a>( } else { None }) - .push(if is_valid { + .push(if is_valid && total_amount < *balance_available { button::primary(None, "Next") .on_press(Message::Next) .width(Length::Units(100))