Skip to content

Commit

Permalink
fix community crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Apr 13, 2023
1 parent 18d941d commit c7e796e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/status_im2/subs/communities.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,9 @@

(re-frame/reg-sub
:communities/featured-communities
:<- [:search/home-filter]
:<- [:communities]
(fn [[search-filter communities]]
(filterv
(fn [{:keys [name]}]
(or (empty? search-filter)
(string/includes? (string/lower-case (str name)) search-filter)))
(vals communities))))
(fn [communities]
(vals communities)))

(re-frame/reg-sub
:communities/sorted-communities
Expand Down

0 comments on commit c7e796e

Please sign in to comment.