Skip to content

Commit

Permalink
Code style: change > 0 for pos?
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Jul 26, 2023
1 parent e88aef5 commit 1fe9670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/quo2/components/notifications/info_count.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:or {customization-color :blue}
:as props}
amount]
(when (> amount 0)
(when (pos? 0)
[rn/view (assoc props :style (counter-style customization-color style))
[rn/text
{:style (merge typography/font-medium
Expand Down
4 changes: 2 additions & 2 deletions src/status_im2/contexts/chat/home/chat_list_item/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@
(defn notification
[{:keys [muted group-chat unviewed-messages-count unviewed-mentions-count]}]
(let [customization-color (rf/sub [:profile/customization-color])
unread-messages? (> unviewed-messages-count 0)
unread-mentions? (> unviewed-mentions-count 0)]
unread-messages? (pos? unviewed-messages-count)
unread-mentions? (pos? unviewed-mentions-count)]
[rn/view {:style style/notification-container}
(cond
muted
Expand Down

0 comments on commit 1fe9670

Please sign in to comment.