mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-04 13:44:56 +00:00
currency-filter-or
This commit is contained in:
parent
64f5d3bb5a
commit
957de197b7
@ -87,10 +87,11 @@
|
|||||||
::bounty-filter-type.category ::bounty-filter-type-category|multiple-dynamic-options
|
::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.re-frame-subs-key-for-options :commiteth.subscriptions/open-bounties-currencies
|
||||||
::bounty-filter-type.predicate (fn [filter-value bounty]
|
::bounty-filter-type.predicate (fn [filter-value bounty]
|
||||||
(and (or (not-any? #{"ETH"} filter-value)
|
(or (and (some #{"ETH"} filter-value)
|
||||||
(< 0 (:balance-eth bounty)))
|
(< 0 (:balance-eth bounty)))
|
||||||
(set/subset? (->> filter-value (remove #{"ETH"}) set)
|
(not-empty (set/intersection
|
||||||
(-> bounty :tokens keys set))))}
|
(->> filter-value (remove #{"ETH"}) set)
|
||||||
|
(-> bounty :tokens keys set)))))}
|
||||||
|
|
||||||
::bounty-filter-type|date
|
::bounty-filter-type|date
|
||||||
{::bounty-filter-type.name "Date"
|
{::bounty-filter-type.name "Date"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user