Skip to content

Commit a3ed6cb

Browse files
committed
remove threaded marco
1 parent 62783d6 commit a3ed6cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/status_im/subs/activity_center.cljs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
(fn [activity-center]
1010
(:notifications activity-center)))
1111

12+
(defn supported-notification?
13+
[notification]
14+
(types/all-supported (:type notification)))
15+
1216
(re-frame/reg-sub
1317
:activity-center/supported-notifications
1418
:<- [:activity-center/notifications]
1519
(fn [notifications]
16-
(->> notifications
17-
(filter #(types/all-supported (:type %))))))
20+
(filter supported-notification? notifications)))
1821

1922
(re-frame/reg-sub
2023
:activity-center/unread-counts-by-type

0 commit comments

Comments
 (0)