Skip to content

Commit 9b9b58d

Browse files
vkjrpavloburykh
authored andcommitted
review notes
1 parent 5f69378 commit 9b9b58d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/status_im/common/controlled_input/utils.cljs

+4-6
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,16 @@
3939
(let [num-value (numeric-value state)]
4040
(and
4141
(upper-limit state)
42-
(if (money/bignumber? num-value)
43-
(money/greater-than (numeric-value state) (upper-limit state))
44-
false))))
42+
(when (money/bignumber? num-value)
43+
(money/greater-than (numeric-value state) (upper-limit state))))))
4544

4645
(defn- lower-limit-exceeded?
4746
[state]
4847
(let [num-value (numeric-value state)]
4948
(and
5049
(lower-limit state)
51-
(if (money/bignumber? num-value)
52-
(money/less-than (numeric-value state) (lower-limit state))
53-
false))))
50+
(when (money/bignumber? num-value)
51+
(money/less-than (numeric-value state) (lower-limit state))))))
5452

5553
(defn- recheck-errorness
5654
[state]

0 commit comments

Comments
 (0)