[#4504] Sort assets alphabetically (send - asset)

Sort assets alphabetically (by symbol).
Keep ETH as first symbol in the list (like before), sort the rest
alphabetically.
This commit is contained in:
Sylvain Ageneau 2018-06-11 20:03:13 +02:00 committed by Roman Volosovskyi
parent 986fc2bc7c
commit 9cf7e05446
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@
:<- [:wallet/visible-tokens-symbols]
(fn [[network visible-tokens-symbols]]
(conj (filter #(contains? visible-tokens-symbols (:symbol %))
(tokens/tokens-for (ethereum/network->chain-keyword network)))
(tokens/sorted-tokens-for (ethereum/network->chain-keyword network)))
tokens/ethereum)))
(re-frame/reg-sub :wallet/visible-assets-with-amount