bug #5120 - fixes crash in wallet send if collectibles are enabled
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
8964ec26a4
commit
019027ff45
|
@ -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)}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue