Skip to content

Commit 3c68250

Browse files
committed
Fix prettier formatting
1 parent 2812d3d commit 3c68250

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

javascripts/discourse/initializers/init-nav-bar-additions.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,12 @@ function getCountForFilter(topicTrackingState, filterType) {
3333
}
3434

3535
if (filterType === "new") {
36-
return (
37-
topicTrackingState.countNew?.() ??
38-
topicTrackingState.newCount ??
39-
0
40-
);
36+
return topicTrackingState.countNew?.() ?? topicTrackingState.newCount ?? 0;
4137
}
4238

4339
if (filterType === "unread") {
4440
return (
45-
topicTrackingState.countUnread?.() ??
46-
topicTrackingState.unreadCount ??
47-
0
41+
topicTrackingState.countUnread?.() ?? topicTrackingState.unreadCount ?? 0
4842
);
4943
}
5044

0 commit comments

Comments
 (0)