- {`${isMentionsEnabled ? `@` : ``}${getNumberCount(totalNotifications)}`}
+
+
);
});
diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
index 25fc4bfef..cd0a0d888 100644
--- a/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
+++ b/web/core/components/workspace-notifications/sidebar/notification-card/item.tsx
@@ -38,6 +38,7 @@ export const NotificationItem: FC
= observer((props) => {
const handleNotificationIssuePeekOverview = async () => {
if (workspaceSlug && projectId && issueId && !isSnoozeStateModalOpen && !customSnoozeModal) {
+ setPeekIssue(undefined);
setCurrentSelectedNotificationId(notificationId);
// make the notification as read
@@ -51,7 +52,6 @@ export const NotificationItem: FC = observer((props) => {
if (notification?.is_inbox_issue === false) {
!getIsIssuePeeked(issueId) && setPeekIssue({ workspaceSlug, projectId, issueId });
- } else {
}
}
};
diff --git a/web/core/components/workspace-notifications/sidebar/root.tsx b/web/core/components/workspace-notifications/sidebar/root.tsx
index 0cdaede73..679df0b31 100644
--- a/web/core/components/workspace-notifications/sidebar/root.tsx
+++ b/web/core/components/workspace-notifications/sidebar/root.tsx
@@ -4,6 +4,7 @@ import { FC } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// components
+import { CountChip } from "@/components/common";
import {
NotificationsLoader,
NotificationEmptyState,
@@ -65,14 +66,12 @@ export const NotificationsSidebar: FC = observer(() => {
)}
>
{tab.label}
-
- {getNumberCount(tab.count(unreadNotificationsCount))}
-
+ }
+ />
{currentNotificationTab === tab.value && (