Merge pull request #298 from pablodip/currency-filter-or-fix-eth

Fix filter currency eth
This commit is contained in:
P 2018-02-19 12:57:48 +01:00 committed by GitHub
commit a2c989df80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@
::bounty-filter-type.category ::bounty-filter-type-category|multiple-dynamic-options
::bounty-filter-type.re-frame-subs-key-for-options :commiteth.subscriptions/open-bounties-currencies
::bounty-filter-type.predicate (fn [filter-value bounty]
(or (and (contains? #{"ETH"} filter-value)
(< 0 (:balance-eth bounty)))
(or (and (contains? filter-value "ETH")
(< 0 (js/parseFloat (:balance-eth bounty))))
(not-empty
(set/intersection
(->> filter-value (remove #{"ETH"}) set)