fix: display value decimals instead of using exp notation

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Richard Ramos 2020-04-16 10:57:29 -04:00 committed by Andrey Shovkoplyas
parent e6005dd7c8
commit 68fcc967a7
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@
(if (nil? to)
{:contact {:name (i18n/label :t/new-contract)}}
(let [eth-value (when value (money/bignumber value))
eth-amount (when eth-value (money/to-number (money/wei->ether eth-value)))
eth-amount (when eth-value (money/to-fixed (money/wei->ether eth-value)))
token (get-transfer-token db to data)]
(cond
(and eth-amount (or (not (zero? eth-amount)) (nil? data)))

View File

@ -174,7 +174,7 @@
[react/text {:style {:margin-bottom 2
:font-size 20
:line-height 24}}
(str amount " " (name symbol))]
(str (money/to-fixed amount) " " (name symbol))]
[react/text {:style {:font-size 12
:line-height 16
:color colors/gray}}