Skip to content

Commit

Permalink
fixing in-range conditions and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz committed Jun 8, 2019
1 parent 9e7d80a commit c6e92f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/status_im/extensions/capacities/components.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns status-im.extensions.capacities.components
(:require
[clojure.string :as string]
[reagent.core :as reagent]
[status-im.ui.components.react :as react]
[status-im.chat.commands.impl.transactions :as transactions]
Expand Down Expand Up @@ -28,10 +29,8 @@
(js/clearTimeout id))
(reset! current (js/setTimeout #(on-input-change-text on-change value) delay)))

(defn- in-range
[n start end]
(or (string/blank? n) (and (nil? start) (nil? end)) (and (< n end) (> n start)))
:else false)
(defn- in-range [n start end]
(or (string/blank? n) (and (nil? start) (nil? end)) (and (< n end) (> n start))))

(defn input [{:keys [keyboard-type style error min max on-change change-delay placeholder placeholder-text-color selection-color
auto-focus on-submit default-value]}]
Expand Down

0 comments on commit c6e92f9

Please sign in to comment.