Skip to content

Commit

Permalink
fix: display value decimals instead of using exp notation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
  • Loading branch information
richard-ramos authored and flexsurfer committed May 5, 2020
1 parent e6005dd commit 68fcc96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/status_im/signing/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/chat/message/command.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 68fcc96

Please sign in to comment.