Skip to content

Commit 7fbd98b

Browse files
committed
Code style: change > 0 for pos?
1 parent cd2e1c8 commit 7fbd98b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/quo2/components/notifications/info_count.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
:or {customization-color :blue}
2323
:as props}
2424
amount]
25-
(when (> amount 0)
25+
(when (pos? 0)
2626
[rn/view (assoc props :style (counter-style customization-color style))
2727
[rn/text
2828
{:style (merge typography/font-medium

src/status_im2/contexts/chat/home/chat_list_item/view.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@
211211
(defn notification
212212
[{:keys [muted group-chat unviewed-messages-count unviewed-mentions-count]}]
213213
(let [customization-color (rf/sub [:profile/customization-color])
214-
unread-messages? (> unviewed-messages-count 0)
215-
unread-mentions? (> unviewed-mentions-count 0)]
214+
unread-messages? (pos? unviewed-messages-count)
215+
unread-mentions? (pos? unviewed-mentions-count)]
216216
[rn/view {:style style/notification-container}
217217
(cond
218218
muted

0 commit comments

Comments
 (0)