From 0ce6e99147d16cfd12f0e5229a7f03eb15d26cca Mon Sep 17 00:00:00 2001 From: Alexandre Magno Date: Wed, 22 May 2019 23:11:48 +0200 Subject: [PATCH] addressing comments about comments and condition order --- src/status_im/extensions/capacities/components.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/status_im/extensions/capacities/components.cljs b/src/status_im/extensions/capacities/components.cljs index 288bf2810a49..9b53341470a7 100644 --- a/src/status_im/extensions/capacities/components.cljs +++ b/src/status_im/extensions/capacities/components.cljs @@ -29,12 +29,11 @@ (reset! current (js/setTimeout #(on-input-change-text on-change value) delay))) (defn- in-range - ;; Determines whether a number is in a range [n, start, end] (cond (nil? n) true - (and (nil? start) (nil? end)) true (= n "") true + (and (nil? start) (nil? end)) true (and (< n end) (> n start)) true :else false))