Merge pull request #7 from status-im/develop

NaN balance fix
This commit is contained in:
Roman Volosovskyi 2016-08-04 14:18:07 +03:00 committed by GitHub
commit e3e0a32ca0
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
[:div.wallet-name "Another wallet"]
[:div.wallet-hash (account-name wallet-id)]
[:div.wallet-currencies
[:div.currency-usd [:span.currency "ETH"] (.toFixed (js/parseFloat @balance) 4)]]
[:div.currency-usd [:span.currency "ETH"]
(when-let [balance @balance]
(.toFixed (js/parseFloat balance) 4))]]
(wallet-uri wallet-id)])))
(defn wallets []