Skip to content

Commit

Permalink
fix: settings panel was missing some fields validations
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Nov 28, 2024
1 parent e40a406 commit d93ac07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,14 @@ pub fn SettingsForm(

<button
type="button"
disabled=move || auto_upgrade_delay.get().is_err()
disabled=move || {
auto_upgrade_delay.get().is_err() || bin_version_polling_freq.get().is_err()
|| balances_retrieval_freq.get().is_err()
|| metrics_polling_freq.get().is_err()
|| l2_network_rpc_url.get().is_err()
|| token_contract_address.get().is_err()
}

on:click=move |_| {
let values = (
auto_upgrade_delay.get_untracked(),
Expand Down

0 comments on commit d93ac07

Please sign in to comment.