Forbid next step if amount sent > available amount
This commit is contained in:
parent
3eddedd7a8
commit
afc4636ad9
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user