Skip to content

Commit

Permalink
fix: clear error before convert
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilsan committed Jul 16, 2023
1 parent ba599d8 commit 7f164a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub(crate) fn Converter(cx: Scope) -> impl IntoView {
let networks = NETWORKS.map(|_| create_signal(cx, "".to_string()));

let convert = move || {
set_error("".to_string());
if let Some(element) = input_ref.get() {
let value = element.value();
let key = if value.starts_with("0x") {
Expand Down

0 comments on commit 7f164a4

Please sign in to comment.