We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f69378 commit 9b9b58dCopy full SHA for 9b9b58d
src/status_im/common/controlled_input/utils.cljs
@@ -39,18 +39,16 @@
39
(let [num-value (numeric-value state)]
40
(and
41
(upper-limit state)
42
- (if (money/bignumber? num-value)
43
- (money/greater-than (numeric-value state) (upper-limit state))
44
- false))))
+ (when (money/bignumber? num-value)
+ (money/greater-than (numeric-value state) (upper-limit state))))))
45
46
(defn- lower-limit-exceeded?
47
[state]
48
49
50
(lower-limit state)
51
52
- (money/less-than (numeric-value state) (lower-limit state))
53
+ (money/less-than (numeric-value state) (lower-limit state))))))
54
55
(defn- recheck-errorness
56
0 commit comments