Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Apr 30, 2024
1 parent 06d18f6 commit cced95a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/status_im/contexts/communities/overview/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@
name])
(when-not collapsed?
[rn/view {:style {:padding-horizontal 8}}
(let [chats-count (count chats)]
(for [index (range chats-count)]
(let [chat (get chats index)]
^{:key (:id chat)}
[channel-chat-item community-id chat (= index (dec chats-count))])))])])])
(let [last-item-index (dec (count chats))]
(map-indexed
(fn [index chat]
^{:key (:id chat)}
[channel-chat-item community-id chat (= index last-item-index)])
chats))])])])

(defn- get-access-type
[access]
Expand Down

0 comments on commit cced95a

Please sign in to comment.