Skip to content

Commit

Permalink
[#12569] RPC URL is lower-cased when entered in URL field when adding…
Browse files Browse the repository at this point in the history
… a custom network

Signed-off-by: andrey <[email protected]>
  • Loading branch information
flexsurfer committed Sep 16, 2021
1 parent 995db1c commit c001688
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/status_im/ui/screens/network/edit_network/views.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(ns status-im.ui.screens.network.edit-network.views
(:require [clojure.string :as string]
[re-frame.core :as re-frame]
(:require [re-frame.core :as re-frame]
[status-im.i18n.i18n :as i18n]
[status-im.network.core :as network]
[status-im.ui.screens.network.edit-network.styles :as styles]
Expand Down Expand Up @@ -40,7 +39,7 @@
{:label (i18n/label :t/rpc-url)
:placeholder (i18n/label :t/specify-rpc-url)
:default-value (get-in manage-network [:url :value])
:on-change-text #(re-frame/dispatch [::network/input-changed :url (string/lower-case %)])}]]]
:on-change-text #(re-frame/dispatch [::network/input-changed :url %])}]]]
[quo/list-header (i18n/label :t/network-chain)]
[list/flat-list {:data [:mainnet :testnet :rinkeby :custom]
:key-fn (fn [_ i] (str i))
Expand Down

0 comments on commit c001688

Please sign in to comment.