bug #5120 - fixes crash in wallet send if collectibles are enabled

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-07-10 16:31:20 +02:00
parent 8964ec26a4
commit 019027ff45
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
2 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,7 @@
[list/item-secondary (wallet.utils/format-amount amount decimals)]]]]])
(views/defview assets [type]
(views/letsubs [assets [:wallet/visible-assets-with-amount]]
(views/letsubs [assets [:wallet/transferrable-assets-with-amount]]
[components/simple-screen
[components/toolbar (i18n/label :t/wallet-assets)]
[react/view {:style (assoc components.styles/flex :background-color :white)}

View File

@ -111,6 +111,11 @@
(fn [[balance visible-assets]]
(map #(assoc % :amount (get balance (:symbol %))) visible-assets)))
(re-frame/reg-sub :wallet/transferrable-assets-with-amount
:<- [:wallet/visible-assets-with-amount]
(fn [all-assets]
(filter #(not (:nft? %)) all-assets)))
(re-frame/reg-sub :wallet/currency
:<- [:wallet.settings/currency]
(fn [currency-id]