We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93aba57 commit 5606bb9Copy full SHA for 5606bb9
gui/ui/src/component/form.rs
@@ -75,9 +75,7 @@ where
75
{
76
Self {
77
input: text_input::TextInput::new(placeholder, &value.value).on_input(move |s| {
78
- if bitcoin::Amount::from_str_in(&s, Denomination::Bitcoin).is_ok()
79
- || s.is_empty()
80
- {
+ if bitcoin::Amount::from_str_in(&s, Denomination::Bitcoin).is_ok() || s.is_empty() {
81
on_change(s)
82
} else {
83
on_change(value.value.clone())
0 commit comments