Skip to content

Commit

Permalink
lint fix and use reduce-kv for network-values-for-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Apr 9, 2024
1 parent 29a5cf5 commit 111d880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/status_im/contexts/wallet/common/utils/send.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns status-im.contexts.wallet.common.utils.send
(:require [utils.money :as money]
[clojure.string :as string]))
(:require [clojure.string :as string]
[utils.money :as money]))

(defn calculate-gas-fee
[data]
Expand Down
8 changes: 4 additions & 4 deletions src/status_im/contexts/wallet/send/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

(defn network-values-for-ui
[amounts]
(into {}
(map (fn [[k v]]
[k (if (money/equal-to v 0) "<0.01" v)])
amounts)))
(reduce-kv (fn [acc k v]
(assoc acc k (if (money/equal-to v 0) "<0.01" v)))
{}
amounts))

0 comments on commit 111d880

Please sign in to comment.