mirror of
https://github.com/status-im/status-react.git
synced 2025-02-24 00:28:29 +00:00
parent
4efb3c111a
commit
874f07bd77
@ -266,9 +266,10 @@
|
||||
|
||||
(defn fiat-formatted-for-ui
|
||||
[currency-symbol fiat-value]
|
||||
(if (money/less-than fiat-value 0.01)
|
||||
(str "<" currency-symbol "0.01")
|
||||
(prettify-balance currency-symbol fiat-value)))
|
||||
(cond
|
||||
(money/equal-to fiat-value 0) (str currency-symbol "0.00")
|
||||
(money/less-than fiat-value 0.01) (str "<" currency-symbol "0.01")
|
||||
:else (prettify-balance currency-symbol fiat-value)))
|
||||
|
||||
(defn prettify-percentage-change
|
||||
"Returns unsigned precentage"
|
||||
|
Loading…
x
Reference in New Issue
Block a user