[#12569] RPC URL is lower-cased when entered in URL field when adding a custom network
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
995db1c332
commit
c001688db9
|
@ -1,6 +1,5 @@
|
||||||
(ns status-im.ui.screens.network.edit-network.views
|
(ns status-im.ui.screens.network.edit-network.views
|
||||||
(:require [clojure.string :as string]
|
(:require [re-frame.core :as re-frame]
|
||||||
[re-frame.core :as re-frame]
|
|
||||||
[status-im.i18n.i18n :as i18n]
|
[status-im.i18n.i18n :as i18n]
|
||||||
[status-im.network.core :as network]
|
[status-im.network.core :as network]
|
||||||
[status-im.ui.screens.network.edit-network.styles :as styles]
|
[status-im.ui.screens.network.edit-network.styles :as styles]
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
{:label (i18n/label :t/rpc-url)
|
{:label (i18n/label :t/rpc-url)
|
||||||
:placeholder (i18n/label :t/specify-rpc-url)
|
:placeholder (i18n/label :t/specify-rpc-url)
|
||||||
:default-value (get-in manage-network [:url :value])
|
: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)]
|
[quo/list-header (i18n/label :t/network-chain)]
|
||||||
[list/flat-list {:data [:mainnet :testnet :rinkeby :custom]
|
[list/flat-list {:data [:mainnet :testnet :rinkeby :custom]
|
||||||
:key-fn (fn [_ i] (str i))
|
:key-fn (fn [_ i] (str i))
|
||||||
|
|
Loading…
Reference in New Issue