File tree 2 files changed +3
-3
lines changed
quo2/components/notifications
status_im2/contexts/chat/home/chat_list_item
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
:or {customization-color :blue }
23
23
:as props}
24
24
amount]
25
- (when (> amount 0 )
25
+ (when (pos? 0 )
26
26
[rn/view (assoc props :style (counter-style customization-color style))
27
27
[rn/text
28
28
{:style (merge typography/font-medium
Original file line number Diff line number Diff line change 211
211
(defn notification
212
212
[{:keys [muted group-chat unviewed-messages-count unviewed-mentions-count]}]
213
213
(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)]
216
216
[rn/view {:style style/notification-container}
217
217
(cond
218
218
muted
You can’t perform that action at this time.
0 commit comments